Description: triggered by someone joining the channel. The mask in
the bind is matched against "#channel nick!user@host" and can
contain wildcards.
Module: irc
is what you need to read though in tcl-commands.doc so something like
The thing is, I already have a bind join - * procname which sends a message to all users joining the channel. What I want is that if someone matches the host *@*.staff.* then a different message will be dispplayed.
bind join - * procname
proc procname {nick uhost hand chan} {
if {[string match "*@*.staff.*" $uhost]} {
puthelp "PRIVMSG $nick :message for people with the staff host"
} else {
puthelp "PRIVMSG $nick :message for everyone else"
}
}
Read the Tcl "string" manual page (not tcl-commands.doc, those are simply Tcl commands added by Eggdrop). Either look at http://www.tcl.tk/man/ or "man n string" on your shell.