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.

Customizing greet script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
C
Cyber
Voice
Posts: 1
Joined: Mon Mar 26, 2007 10:03 pm

Customizing greet script

Post by Cyber »

I was wondering if it is possible to customize greet script this way: if someone using nick Bitch123 enters the channel, bot sends him/her one message, if someone using nick Popey123 enters, bot sends him/her different message, etc...

Like mirc code if ( bitch isin $nick ) etc...

Any idea how to do this, or any script already made?

Thx & cheers :D
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Code: Select all

bind join - * greet:proc

greet:proc {nick uhost hand chan} {
 if {[string match -nocase "*Bitch123*" $nick]} {
   putserv "PRIVMSG $nick :Text comes here"
} elseif {[string match -nocase "*Nick123*" $nick]} {
   putserv "PRIVMSG $nick :Text comes here"
}
return
}
|AmDeAtH @ Undernet
Death is only the *Beginning*...
Post Reply