mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Is it possible to make a script that will notice a user if he has the name Guest in his name?
This might be a simple thing, but I would really like some help.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on !*:join:#:{
  if (Guest isin $nick) { ... }
}

Joined: Jun 2006
Posts: 1
J
Mostly harmless
Offline
Mostly harmless
J
Joined: Jun 2006
Posts: 1
:tongue:
on !*:nick:#:{ if (Guest isin $nick) { ... }}

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
JIJI, the ON NICK event is not associated with a channel so placing a # in won't work. The same is true for ON QUIT events


Those who fail history are doomed to repeat it
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I would probably throw in an @ in your on join event (and on nick) so it only triggers if he's an op... I'm guessing he'll want to kick or ban the nick and if he's not an op, that will just give him error messages. smile


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
He didn't say that though. No use assuming what he wants smile

Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Thanks alot, its working, I got another one I would like to ask about:

on *:join:#:{
if (jack isin $nick) {/me slaps $nick }}

Im still a big n00b at this, but this aint working
and please dont laugh hehe, but I request help.

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
a couple of things

/ isnt needed and doesnt belong in a remote
the /me is only usable in the edit box
f (jack isin $nick) {/me slap $nick } <-- you need a space between the { and any commands
you have another "on join" already in that file and that will conflict subsequent on joins in the same file

add this to your existing on join
if (jack isin $nick) { describe $chan slaps $nick }

Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Thanks, both are working, and also thanks for the very quick response..
/me goes reading help files

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
smile
no problem


Link Copied to Clipboard