This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
ReaLz
Op
Posts: 121 Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece
Post
by ReaLz » Sat Feb 08, 2003 9:23 am
I've made a script that kickbans the person who sends a /msg to the bot and has *www* in his msg.
Can I make the bot to not ban the person if he says something with www in it but with something else in the line?
for example if he says <john> go to
www.sfsfsdf.com I don't want to ban him coz he tries to ban an inviter.
but if a person says to the bot go to
www.dfasdf.com I want him to get banned coz he is an inviter.
«A fantastic spaghetti is a spaghetti that does not exist»
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sat Feb 08, 2003 9:27 am
Please be more specific on what you want to do. I think I have understood what you ment to say but I want to be shure of it..
Once the game is over, the king and the pawn go back in the same box.
ReaLz
Op
Posts: 121 Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece
Post
by ReaLz » Sat Feb 08, 2003 9:35 am
I want to set some words that if someone says them in the line that the "www" is won't get banned.
«A fantastic spaghetti is a spaghetti that does not exist»
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sat Feb 08, 2003 3:56 pm
So, you have the
www .* as a bad word but you want
www.something.com to not be in the *bad* list? Is this you want to do?
Once the game is over, the king and the pawn go back in the same box.
ReaLz
Op
Posts: 121 Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece
Post
by ReaLz » Sun Feb 09, 2003 1:23 am
yes
«A fantastic spaghetti is a spaghetti that does not exist»
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Feb 09, 2003 3:08 am
Then use something like this to allow the '
www.somehting.com ' to be said on the msg:
foreach word [split $arg] {
if {![string match "*
www .*" $word]} { continue }
if {[string compare -nocase $word "
www.something.com "] == 0 } { continue }
...
}
Replace the '...' with your *stuff*.
Once the game is over, the king and the pawn go back in the same box.