Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; manipulate text messages
- ON ^*:TEXT:*:#shoutbox: {
- ; parse text
- if ($regex($1-,/^\s*\x03(\d{1,2})(?:,\d{1,2})?(.*?)\s*$/)) {
- var %col = $regml(1), %msg = $regml(2)
- ; replace yellow with orange
- if (%col == 8) %col = 7
- ; display text
- echo # [[ $+ $time $+ ]] < $+ $chr(3) $+ %col $+ $nick($chan,$nick).pnick $+ $chr(3) $+ > %msg
- halt
- }
- else if ($regex($1-,/^\s*(.*?)\s*$/)) {
- ; display text without color and strip spaces
- echo # [[ $+ $time $+ ]] < $+ $nick($chan,$nick).pnick $+ > $regml(1)
- halt
- }
- ; otherwise do nothing
- }
- ; prevent join msgs
- on ^1:JOIN:#shoutbox: halt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement