i have a script ban.tcl this little script adds($handle%d/%m/%y)
to your bans' reason, so banned person can see who set a ban on him.
the script is :
> unbind dcc o|o +ban *dcc:+ban;
> bind dcc o|o +ban ban:+ban
>
> proc ban:+ban {handle idx arg} {
> if {$arg == ""} {
> *dcc:+ban $handle $idx $arg
> return 0
> }
> set date [strftime %d/%m/%y]
> *dcc:+ban $handle $idx "$arg ($handle@$date)"
> }
>
> but when i do +ban bla bla i get (banned : reason (Handle))
> and i want to change it to (banned : hanlde : reason)
> but when i am trying to change it my egg does down
i can`t understant y but the code that u give me to replace it it`s not working. It`s banning my handle and it`s puts at reason the host that i want to ban...(i`ve try that one before i post here)
Let me explain u again what i want.
First i want that i said to the previous post. Then i want also at command .kickban nick to be public the oper who did it. And a last one i want the bots have a default reason if someone adds a ban without a reason.
let me give some examples
@ Bot (i`m User1)
.kickban Ni0 I hate u
@Channel
* Ni0 was kicked by Bot (Banned: User1: I hate u)
@ Bot
.+ban Ni0!*@* I Hate u also
@channel
* Ni0 was kicked by Bot (Banned: User1: I hate u also)
@ Bot
.+ban Ni0!*@*
@channel
* Ni0 was kicked by Bot (Banned: User1: Without Reason)