As I read in the tcl-commands.doc the bind for kick sounds like: "bind kick <flags> <mask> <proc>". I want to bind this for "o" user's and I tyed "bind kick o "*" kick:extract" and other flags and nothing. I don't see where is my mistake. Any sugestions ? Thx!
Well .. I did try an .restart but .. hmm .. I don't know what is hapening with this eggy now I can see a thing. I use this code:
- Code -
bind kick - "*" kick:extract
proc kick:extract {nick uh hand chan vict reas} {
if {$nick != "X"} { return }
set person_kicked [string trim [lindex [split $reas] 0] {()}]
putserv "PRIVMSG $chan :Hey person_kicked .. why are you kicking my friend $vict ?"
}
- Code -
Now is not working. Uff .. stupid windrop .. I got to test this with a linux eggdrop coz this dive me nuts. Now it's working .. now he don't ..
The code listed up he react's to all kicks and if change in there from "-" to an "o" this should react only to "o" user's. Right ?
As I can see the "person_kicked" is in fact the username of the kicker and the "vict" is the real victim. Maybe I'm wrong but with my previous code this was happening like this. I don't know what is wrong with my windrop, I guess I have to test from now tcl's on a real eggdrop, a linux one. I guess my problems that I had is from this and other tcl's where not from the code. Hmm .. This is driving me nuts. That's it .. I'm moving to a linux eggdrop. Thx for help ppslim!