bind mode - "% +b" check:ban
proc check:ban {nick host hand chan mode target} {
if {![matchaddr $target $::botname]} return
# do whatever you wish as the ban mask matches bot address
}
The matchaddr is a eggdrop 1.6.20 function, so if you are using an older version would have to replace:
The botname variable should have stored his actual nick!user@host mask and should be updated when vhost changes (I think). Apparently it doesn't so give this a try:
bind mode - "% +b" check:ban
proc check:ban {nick host hand chan mode target} {
global botnick
if {![matchaddr $target "$botnick![getchanhost $botnick]"]} return
# do whatever you wish as the ban mask matches bot's current vhost
}
Once the game is over, the king and the pawn go back in the same box.
caesar wrote:The botname variable should have stored his actual nick!user@host mask and should be updated when vhost changes (I think). Apparently it doesn't so give this a try:
bind mode - "% +b" check:ban
proc check:ban {nick host hand chan mode target} {
global botnick
if {![matchaddr $target "$botnick![getchanhost $botnick]"]} return
# do whatever you wish as the ban mask matches bot's current vhost
}