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.

MSGM bind

Old posts that have not been replied to for several years.
Locked
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

MSGM bind

Post by ReaLz »

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»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

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»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

yes
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
Locked