here is a better little script that would count other ppls kicks too
Code:
alias k {
if (!%kick.#) { set %kick.# 1 }
else {
inc %kick.# 1
notice $1 you are kicked user %kick.#
}
on *:kick:*: {
if (!%kick.#) { set %kick.# 1 }
else {
inc %kick.# 1
notice $1 you are kicked user %kick.#
}
untested and im sleepy if you dont like it change what you want :tongue:
No need for the if statements, just /inc away... Also -- your code would count each user that you kick twice and users other ppl kick once.
Also -- what is this mode -k? Using -k on a channel sets a key. I think you are referring to using /ban -k. In that case, you have two options:
1. rewrite your alias to inc a counter when you do a /ban 2. use the on kick event
Code:
on *:KICK:#: {
[color:green]; if you wanna count all kicks and not just your own, remove this line[/color]
if ($nick != $me) halt
[color:green]; increment the counter (channel specific!)[/color]
inc %kickcount. [ $+ [ $chan ] ]
[color:green]; harass the user[/color]
[color:green]; remove the blue word if you removed the other line[/color]
.notice $knick You are person number %kickcount. [ $+ [ $chan ] ] I have [color:blue]seen[/color] kicked from $chan !
}
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
There is a HUGE difference between ATMA's and mine. Mine checks who does the kicking. ATMA's checks if a variable exists, if not it creates it, else it increments it. You can just increment it no matter what. If the variable does not exist and you increment it, it will be incremented as if it had the value 0. Mine is necessary if you wanna count only your own kicks (unless you use the ME prefix), his is completely obsolete.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
Yes, I know how they both work, just thought I'd ask. No worried dude. I don't think ATMA's would work anyway, would it? Didn't think you could use on *:KICK:*: { What does that * represent? I thought you could only use on *:KICK:#: {
Thanks for all the posts, I think I can create the new kick counter now - I prefer not to .notice each user they have been kicked - they will see it in the status window (for the reason etc)
Thanks for the little update... I've pretty well had set up a new kick counter however the coding in yours is a tad smaller - the smaller the code (that works) the better.