mIRC Home    About    Download    Register    News    Help

Page 2 of 2 < 1 2
Topic Options
#105804 - 21/12/04 10:48 PM Re: nick change kick/ban?
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
You need to put everything above in remote (Alt+R).
_________________________
New username: hixxy

Top
#105805 - 21/12/04 10:52 PM Re: nick change kick/ban?
Morgan7456 Offline
Ameglian cow

Registered: 20/12/04
Posts: 43
Loc: Honolulu, HI
it is in my remote

Top
#105806 - 21/12/04 10:56 PM Re: nick change kick/ban?
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
Type //echo -a $isalias(kicknicks), it should echo "$true", if it echos "$false" then you've done something wrong.
_________________________
New username: hixxy

Top
#105807 - 21/12/04 11:02 PM Re: nick change kick/ban?
Morgan7456 Offline
Ameglian cow

Registered: 20/12/04
Posts: 43
Loc: Honolulu, HI
$true

Top
#105808 - 21/12/04 11:04 PM Re: nick change kick/ban?
Morgan7456 Offline
Ameglian cow

Registered: 20/12/04
Posts: 43
Loc: Honolulu, HI
ok, the script banned the nickname changer, but it didn't kick crazy

Top
#105809 - 21/12/04 11:07 PM Re: nick change kick/ban?
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
Try putting an echo -s before the kick to see if it's being executed:

Code:
echo -s kick $comchan($1,%i) $1 You are in my PERMANENT Ban On Sight List


If it's working then you should see an echo in your status window.
_________________________
New username: hixxy

Top
#105810 - 21/12/04 11:10 PM Re: nick change kick/ban?
Morgan7456 Offline
Ameglian cow

Registered: 20/12/04
Posts: 43
Loc: Honolulu, HI
it's ok now, it worked. Thanks! grin

Top
#105811 - 22/12/04 08:10 AM Re: nick change kick/ban?
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
copy his code from above it well work the alias kicknicks is right there.

Copy the code then paste it into wordpad
Then copy it from wordpad and paste it into the remotes section of mirc
(this fixes the code from coming out all on one line in mirc)

Top
#105812 - 01/01/05 10:10 AM Re: nick change kick/ban?
Lord_Dragoon Offline
Mostly harmless

Registered: 01/01/05
Posts: 1
Quote:
Hi all

I was wondering how I can kick/ban someone when they change their nick to a certain nickname. I would say it is something similar to a bad nickname kick/ban script, but I'm only looking to do this for 1 nickname only. Currently, I have written a script that didn't work:

on 1:NICK:{ if $newnick == test123 } /mode # +b $nick | .timer 1 1 /kick # $newnick You are in my PERMANENT Ban On Sight List }

if anyone can help me with my mistakes, I'd greatly appreciate it! thanks confused


The reason why this Script Never worked was because you used the { } Brackets instead of the () Brackets
It should have Look like the Following:

on *:NICK:{
if ( $newnick == test123 ) { /mode $chan +b $nick | .timer 1 1 /kick $chan $newnick You are in my PERMANENT Ban On Sight List }
}
smile
_________________________
~Find an Honourable Code and Abide by it~

Top
#105813 - 12/01/05 08:08 AM Re: nick change kick/ban?
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
From another point of view they have used 1 too many }
Code:
on 1:NICK:{ 
if $newnick == test123 [color:red]}[/color] /mode # +b $nick | .timer 1 1 /kick # $newnick You are in my PERMANENT Ban On Sight List 
}

You don't need to use parentheses.

Top
#105814 - 12/01/05 08:32 AM Re: nick change kick/ban?
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
Lord Dragoon's last post showed correct usage of braces. Btw you put the wrong brace, should be {
and you forgot an ending brace } to go with that.

Cya andy
_________________________
Gone.

Top
#105815 - 12/01/05 08:39 AM Re: nick change kick/ban?
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Quote:

Lord Dragoon's last post showed correct usage of braces. Btw you put the wrong brace, should be {
and you forgot an ending brace } to go with that.


I was showing that they didn't need parentheses. I was also showing where they used too many } brace not where they should put one sorry for not being clear. smile

Top
#105816 - 12/01/05 08:48 AM Re: nick change kick/ban?
FiberOPtics Offline
Hoopy frood

Registered: 05/02/04
Posts: 2019
Loc: Leuven, Belgium
Hehe, might be cuz it's 9:46 am wink

Anyway, I suppose it might be better to just show the right usage, as you got me, I thought you put it there on purpose, and made it red to highlight the fact it should be there.

Nvm smile
_________________________
Gone.

Top
Page 2 of 2 < 1 2