var user = prefix;\r
var channel = params[0];\r
var message = params[1];\r
+\r
var nick = hosttonick(user);\r
\r
if((nick == self.nickname) && self.channels[channel])\r
self.tracker.removeChannel(channel);\r
} else {\r
self.tracker.removeNickFromChannel(nick, channel);\r
+ newChanLine(channel, "PART", user, {"m": message});\r
}\r
- \r
- if(!message)\r
- message = "";\r
- newChanLine(channel, "PART", user, {"m": message});\r
+ \r
self.updateNickList(channel);\r
\r
if(nick == self.nickname)\r
self.tracker.removeNickFromChannel(kickee, channel);\r
self.updateNickList(channel);\r
}\r
- if(!message)\r
- message = "";\r
\r
newChanLine(channel, "KICK", kicker, {"v": kickee, "m": message});\r
}\r
}\r
i++;\r
if(isnum(xline[i + 1])) {\r
- fg = xline[i] + xline[i + 1];\r
+ fg = parseInt(xline[i] + xline[i + 1]);\r
i++;\r
} else {\r
- fg = xline[i];\r
+ fg = parseInt(xline[i]);\r
}\r
if(xline[i + 1] != ",")\r
return i;\r
i+=2;\r
\r
if(isnum(xline[i + 1])) {\r
- bg = xline[i] + xline[i + 1];\r
+ bg = parseInt(xline[i] + xline[i + 1]);\r
i++;\r
} else {\r
- bg = xline[i];\r
+ bg = parseInt(xline[i]);\r
}\r
return i;\r
}\r
ac();\r
\r
i = parsecolours(xline, i);\r
+ if(bg > 15)\r
+ bg = undefined;\r
+ if(fg > 15)\r
+ fg = undefined;\r
pc();\r
} else {\r
out.push(lc);\r
var c2 = n[++i];\r
\r
var o = ThemeControlCodeMap[c2];\r
- if(!o) {\r
+ if(!o)\r
o = h[c2];\r
- if(!o)\r
- o = c;\r
- }\r
- msg.push(o);\r
+ if(o)\r
+ msg.push(o);\r
} else {\r
msg.push(c);\r
}\r