Code: Select all
bind ctcp - ACTION ctcp:away
proc ctcp:away {nick host handle chan keyword args} {
if {[isop $nick $chan]==1} {return 0}
if {[string match -nocase "ACTION" $keyword]!=1} {return 0}
if {[string match -nocase "#fun-gaming" $chan]==0} {return 0}
if {[string match -nocase "*away*" [join $args]]!=0} {
set reason "no away scripts"
puthelp "KICK $chan $nick :$reason"
pushmode $chan +b *!*@[lindex [split $uhost @] 1]
timer 20 [list pushmode $chan -b *!*@[lindex [split $uhost @] 1]]
}
}
putlog "joeґs awaykicker 1.0 loaded successfully"
Code: Select all
#joe´s awayscriptkicker 1.0
#you may not change the lines after # :)
#have fun with it and visit jf7.de & #s0uls for further questions
#you just need to change #azeroth.cs in the channel you want to use this script
#after 'set reason' you can change the reason which is displayed as kickreason
bind ctcp - ACTION ctcp:away
proc ctcp:away {nick host handle chan keyword args} {
if {[isop $nick $chan]==1} {return 0}
if {[string match -nocase "ACTION" $keyword]!=1} {return 0}
if {[string match -nocase "#fun-gaming" $chan]==0} {return 0}
if {[string match -nocase "*away*" [join $args]]!=0} {
set reason "no away scripts"
puthelp "KICK $chan $nick :$reason"
}
}
putlog "joe´s awaykicker 1.0 loaded successfully"
Code: Select all
putquick "MODE $chan +b $host"
timer 20 [list putquick "MODE $chan -b $host"]
Code: Select all
#joe´s awayscriptkicker 1.0
#you may not change the lines after # :)
#have fun with it and visit jf7.de & #s0uls for further questions
#you just need to change #azeroth.cs in the channel you want to use this script
#after 'set reason' you can change the reason which is displayed as kickreason
bind ctcp - ACTION ctcp:away
proc ctcp:away {nick host handle chan keyword args} {
if {[isop $nick $chan]==1} {return 0}
if {[string match -nocase "ACTION" $keyword]!=1} {return 0}
if {[string match -nocase "#fun-gaming" $chan]==0} {return 0}
if {[string match -nocase "*away*" [join $args]]!=0} {
set reason "no away scripts"
puthelp "KICK $chan $nick :$reason"
putquick "MODE $chan +b $host"
timer 20 [list putquick "MODE $chan -b $host"]
}
}
putlog "joe´s awaykicker 1.0 loaded successfully"
Code: Select all
pushmode $chan +b *!*@[lindex [split $uhost @] 1]
Code: Select all
putquick "MODE $chan +b $host"
but afterwards your bot do something different here, see:[13:04:38] » +Esben is away
[13:04:38] »» [m]ode> [Home] sets [+b *!Esben@crew.web52.dk]
[13:04:38] »» [T]his [*!Esben@crew.web52.dk] ban affects [+Esben]
Your bot change the banbask FROM *!ident@full.domain.com TO *!ident@*.domain.com which HAS NOT BEEN TOLD you from Sir_Fz or me either then where it comes from?[13:04:38] »» [m]ode> [Home] sets [-b+b *!Esben@crew.web52.dk *!Esben@*.web52.dk]
[13:04:38] »» [T]his [*!Esben@*.web52.dk] ban affects [+Esben]