Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- raw *:*: {
- if ($regex($rawmsg,%msgregex) > 0) {
- var %tags = $regml(1)
- var %nick = $regml(2)
- var %chan = $regml(3)
- var %msg = $regml(4)
- var %sub = 0
- ; "parse" tags
- if ($pos(%tags,subscriber=1) > 0) {
- %sub = 1
- }
- ; nickname color
- var %colornick = 15 ;grey
- if (%nick isop %chan) {
- %colornick = 9 ;green
- %nick = $+(@,%nick)
- }
- ; apply nick colors from address book
- %colornick = $cnick(%nick).color
- ; remove /me prefix
- %msg = $remove(%msg,ACTION )
- if (%sub == 1) {
- echo -itmlbf %chan $+(<, ,%colorsub,%subtag,,%colornick,%nick,>) %msg
- }
- else {
- echo -itmlbf %chan $+(<,%colornick,%nick,>) %msg
- }
- haltdef
- }
- ; ignore USERSTATE messages
- if ($pos($rawmsg,USERSTATE #) > 0) {
- haltdef
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement