i would like to know how to notice a user when the user join a channel (i also need to specafied the channel so the bon't won't notice a user who join another channel else but the one i specafied)
set joinmsg "Your msg!"
setudef flag joinmsg
bind join - * join:msg
proc join:msg {nick uhost hand chan} {
if {[isbotnick $nick] || ![channel get $chan joinmsg]} {
return
}
putserv "PRIVMSG $nick :$::joinmsg"
}
To enable use .chanset #channel +joinmsg and to disable it use the .chanset #channel -joinmsg and replace #channel with the actual name of the channel.
Once the game is over, the king and the pawn go back in the same box.