Hey all. I've made a decent profanity system, dialog and everything, but the actual kicker won't work lol any ideas why please?
#profanity on
on *:TEXT:*:#: {
if ($nick !isowner $chan) {
var %i =1
while (%i < $lines(profanity.ini)) {
if ($read(profanity.ini,%I) iswm $1-) && (%kick == 1) {
sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick Profanity Used: $1-
}
elseif (%ban == 1) {
sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) add deny $address | sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick Profanity Used: $1- (Banned)
}
inc %i
}
}
}
#profanity end
Any helpful comments will be grateful