ok i want to add something to my script ...where if u are op in the room and you type dehost..it will take there hammer away...and when i use this code it takes my hammer away only....
on *:TEXT:*dehost:#:/mode $chan -o $nick
ok i want to add something to my script ...where if u are op in the room and you type dehost..it will take there hammer away...and when i use this code it takes my hammer away only....
on *:TEXT:*dehost:#:/mode $chan -o $nick
Shot in the dark... not tested
on *:TEXT:*dehost*:#:{
if ($nick isop #)
/mode $chan -o $nick
}
on *:INPUT:*dehost*:#: {
/mode $chan -o $me
}
on admin:text:@dehost*:{ mode $chan -o $ial($2).nick }
menu nicklist {
Admin level
. $iif($level($ial($$1).addr) != admin,$style(2))Add user:/auser admin $ial($$1).addr
. $iif($level($ial($$1).addr) == admin,$style(2))Remove user:/ruser admin $ial($$1).addr
}
Only people with an admin user level can use the above command. You can add users to the admin user level with the above code by right-clicking the nicklist and selecting the "admin level" popup. You can (optionally) also a wildcard in the remote like so:
@dehost err0*
The above will dehost the first nickname matching the wildcard (eg: on this forum that would logically be err0r). You can use several wildcards and also begin with a wildcard like so:
@dehost *r0*
However, be careful when using wildcards as it will match the first matching nickname (eg: with the above, ar0n would be dehosted before err0r).
PS: MucH's code is what you asked for but it's an evil snippet imo; dehosting someone just because they say "dehost"
thanks guys.......ok i have one more ?......ok this will dehost them......anyway i can have a op whisper the bot with a command and it will host them back .......
I think this is it...
on *:deop:#:{ auser deopped $nick }
on deopped:text:@reop:?:{ mode $comchan($nick,1) +o $nick | ruser deopped $nick }
Sign in to reply or start a new topic where your account has permission.