Skip to content
MSN

Profanity System Help

A TG007 community discussion started by Absorbx_o.

Discussion 4 posts
Page 1 of 1
Open
Topic #231 · 4 published posts · 537 views

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

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0

Maybe replace the iswm by a isin. If you don't have the words like *jerk*, the iswm wont work.

 

if ($read(profanity.ini,%I) isin $1-) && (%kick == 1) {

 

If the file profanity.ini is (getting) large, you'd better reverse the comparision. That means look for the words in $1- in the file.

 

 

*edit

Also notice when %ban == 1 and the word is not found, you will issue a ban....

Edited Apr 8, 2004 9:40 AM by Pete®tje

heh i found the problem with it any way dood thanks, the %i =1 should of been %i = 1 tongue.gif. biggrin.gif

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0

hmm where the other text go? dry.gif

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0