"ban" {
if {(![matchattr $hand o|o $chan] && ![isop $nick $chan] && ![pub_issubop $usesubop $hand $chan]) || [ma$
if {$::pub_setting(noticeacc)} { putserv "NOTICE $nick :This command requires Channel [expr {($usesubo$
return
}
if {[pub_cc [set reason [join [lrange $extxt 2 end]]] ""]} {
puthelp "NOTICE $nick :Usage: $prefix Ban <nick/host> <reason>"
return
}
if {![pub_cm "*!*@*" $sindex1]} {
set user $sindex1
if {![matchattr $hand o|o $chan] && ![isop $nick $chan] && [isop $user $chan]} {
pub_putmsg $chan "SubOps cannot ban ops."
return
}
if {![onchan $user $chan]} {
pub_putmsg $chan "$user is not on $chan."
return
}
if {![matchattr $hand o|o $chan] && ![isop $nick $chan]} {
foreach u [chanlist $chan] {
if {[isop $u $chan] && [pub_ncm $user $u![getchanhost $u]]} {
pub_putmsg $chan "SubOps cannot ban ops."
return
}
}
}
pushmode $chan +b $user
}
when i type on the main, "g ban nick" the bot bans *!ident@host even if the ident has ~ in it, so what i want is that the bot would ban *!*ident@host, can somebody fix it up for me ?[/code]
First, paste what is with the 'sindex1' and if it's the argument 1 of the command the use this: set mask "*!*@[lindex [split [getchanhost $sindex1] @] 1]"
Once the game is over, the king and the pawn go back in the same box.