mIRC Homepage
Posted By: vuongthacsi Kick user if use /ame - 10/11/04 06:28 AM
Is it possible to kick people who use command /ame in channel. thanks for your help
Posted By: tidy_trax Re: Kick user if use /ame - 10/11/04 01:08 PM
Code:
on @*:action:*:#:{ kick $chan $nick No actions. }
Posted By: Danthemandoo Re: Kick user if use /ame - 10/11/04 05:19 PM
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
Posted By: tidy_trax Re: Kick user if use /ame - 10/11/04 10:08 PM
Looks fine to me, but that's not what the person asked for.
Posted By: Danthemandoo Re: Kick user if use /ame - 10/11/04 10:16 PM
"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"
Posted By: vuongthacsi Re: Kick user if use /ame - 11/11/04 05:59 AM
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
Posted By: Danthemandoo Re: Kick user if use /ame - 11/11/04 06:39 AM
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
}
}
Posted By: vuongthacsi Re: Kick user if use /ame - 11/11/04 11:26 AM
hihihi wow, good, easy like that, but i did not think of smile
© mIRC Discussion Forums