mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2006
Posts: 22
L
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Jan 2006
Posts: 22
Ok heres what I got,

Code:
on @*:join:#: { 
  if ($left($nick,5) == guest) { 
    kick # $nick No guest nicks allowed!
 }
  elseif ($left($nick,7) == visitor) {
    kick # $nick No visitor nicks allowed!
 }
}


is this goona work... cause its not...
I think I have a bracket in the wrong place or something

Last edited by LordNight; 16/07/07 07:43 AM.
Joined: Jan 2006
Posts: 22
L
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Jan 2006
Posts: 22
Got it figured out... whole different code...

Code:
on *:join:#: {
 if (Guest* iswm $nick) { 
   kick # $nick No guest nicks allowed!
 }
} 


I just made a second one that had visitor in it.. works great..
I'm sure I could have used a elseif statement. but it works so i'm happy

Joined: Jul 2007
Posts: 19
O
Old Offline
Pikka bird
Offline
Pikka bird
O
Joined: Jul 2007
Posts: 19
Include the visitor variable within the same event. Making a second on join event won't work.

Code:
on *:JOIN:#: {
  if (*guest* iswm $nick) {
    kick $chan $nick No guest nicks allowed!
  }
  elseif (*visitor* iswm $nick) {
    kick $chan $nick No visitor nicks allowed!
  }
}


http://www.CloudyOneStudios.com
irc.CloudyOneStudios.com:#CloudyOne
Joined: Jan 2006
Posts: 22
L
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Jan 2006
Posts: 22
Hmm yep.. .found that out..
Thank you Old....

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on @*:JOIN:#: {
  if (*guest* iswm $nick) {
    kick $chan $nick No guest nicks allowed!
  }
  elseif (*visitor* iswm $nick) {
    kick $chan $nick No visitor nicks allowed!
  }
}


Make sure you have the @ there which checks to see if you're an op before kicking. Otherwise you're gonna get alot of:

* LordKnight: you're not channel operator

Messages if you have masses of Guest/Visitor nicks joining.


Link Copied to Clipboard