Is it possible to kick people who use command /ame in channel. thanks for your help
right, this is somethin i've JUST made and havn't been able to test properly. It was made in a hurry so don't blame me if it goes totally wrong.
on *:action:*:#:{
if (!%ame. [ $+ [ $nick ] ]) {
set -u1 %ame. [ $+ [ $nick ] ] 0
}
if (%amemsg. [ $+ [ $nick ] ] == $1-) {
inc %ame. [ $+ [ $nick ] ]
}
else {
set -u1 %amemsg. [ $+ [ $nick ] ] $1-
}
if ($istok(%amechan. [ $+ [ $nick ] ],$chan,32) == $false) {
set -u1 %amechan. [ $+ [ $nick ] ] %amechan. [ $+ [ $nick ] ] $chan
}
if ($numtok(%amechan. [ $+ [ $nick ] ],32) >= 2) {
kick or whatever u want to do
}
}
Theres probably easier and cleaner ways of doing it, and it will probably trigger is someone does a /me in the same channel twice quickly, but i'll edit it if i perfect it.
Oh, and u have to be in at least 2 of the channels that person is in for it to work.
[Edit] fixed the same msg to same channel causing trigger thing i think
Looks fine to me, but that's not what the person asked for.
"Is it possible to kick people who use command /ame in channel"
means to me:
"is it possible to kick someone if they use /ame"
which is exactly what i answered with...why, how do you read it?
From help file:
"...the /ame command send the specifed message or action to all open channel windows"
Thanks Danthemandoo, it worked good so far
Can we kick users in any room that we want to kick them ?
for example, i want to kick them in #lobby, #teen
just change "kick or whatever u want to do" in that script to
kick #lobby $nick kick No /ame's please
kick #teen $nick kick No /ame's please
So the bottom bit will look like:
if ($numtok(%amechan. [ $+ [ $nick ] ],32) >= 2) {
kick #lobby $nick kick No /ame's please
kick #teen $nick kick No /ame's please
}
}
hihihi wow, good, easy like that, but i did not think of