mIRC Home    About    Download    Register    News    Help

Print Thread
Kick user if use /ame #102564 10/11/04 06:28 AM
Joined: Nov 2004
Posts: 15
V
vuongthacsi Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Nov 2004
Posts: 15
Is it possible to kick people who use command /ame in channel. thanks for your help

Re: Kick user if use /ame #102565 10/11/04 01:08 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on @*:action:*:#:{ kick $chan $nick No actions. }


New username: hixxy
Re: Kick user if use /ame #102566 10/11/04 05:19 PM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
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

Last edited by Danthemandoo; 10/11/04 05:28 PM.
Re: Kick user if use /ame #102567 10/11/04 10:08 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Looks fine to me, but that's not what the person asked for.


New username: hixxy
Re: Kick user if use /ame #102568 10/11/04 10:16 PM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
"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"

Re: Kick user if use /ame #102569 11/11/04 05:59 AM
Joined: Nov 2004
Posts: 15
V
vuongthacsi Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Nov 2004
Posts: 15
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

Last edited by vuongthacsi; 11/11/04 06:01 AM.
Re: Kick user if use /ame #102570 11/11/04 06:39 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
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
}
}

Re: Kick user if use /ame #102571 11/11/04 11:26 AM
Joined: Nov 2004
Posts: 15
V
vuongthacsi Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Nov 2004
Posts: 15
hihihi wow, good, easy like that, but i did not think of smile