mIRC Home    About    Download    Register    News    Help

Print Thread
Onjoin if nick is guest then #151072
13/06/06 07:44 AM
13/06/06 07:44 AM
Joined: Oct 2005
Posts: 98
S
starpossen Offline OP
Babel fish
starpossen  Offline OP
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.

Re: Onjoin if nick is guest then #151073
13/06/06 09:35 AM
13/06/06 09:35 AM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
Code:
on !*:join:#:{
  if (Guest isin $nick) { ... }
}

Re: Onjoin if nick is guest then #151074
13/06/06 02:40 PM
13/06/06 02:40 PM
Joined: Jun 2006
Posts: 1
J
JiJi Offline
Mostly harmless
JiJi  Offline
Mostly harmless
J

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

Re: Onjoin if nick is guest then #151075
13/06/06 04:18 PM
13/06/06 04:18 PM
Joined: Dec 2002
Posts: 1,527
state of confusion
L
landonsandor Offline
Hoopy frood
landonsandor  Offline
Hoopy frood
L

Joined: Dec 2002
Posts: 1,527
state of confusion
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
Re: Onjoin if nick is guest then #151076
13/06/06 09:32 PM
13/06/06 09:32 PM
Joined: Oct 2004
Posts: 8,327
MA, USA
Riamus2 Offline
Hoopy frood
Riamus2  Offline
Hoopy frood

Joined: Oct 2004
Posts: 8,327
MA, USA
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
Re: Onjoin if nick is guest then #151077
14/06/06 09:27 AM
14/06/06 09:27 AM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
He didn't say that though. No use assuming what he wants smile

Re: Onjoin if nick is guest then #151078
14/06/06 07:35 PM
14/06/06 07:35 PM
Joined: Oct 2005
Posts: 98
S
starpossen Offline OP
Babel fish
starpossen  Offline OP
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.

Re: Onjoin if nick is guest then #151079
14/06/06 07:43 PM
14/06/06 07:43 PM
Joined: Dec 2002
Posts: 1,245
California, doooood
M
MikeChat Offline
Hoopy frood
MikeChat  Offline
Hoopy frood
M

Joined: Dec 2002
Posts: 1,245
California, doooood
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 }

Re: Onjoin if nick is guest then #151080
14/06/06 07:55 PM
14/06/06 07:55 PM
Joined: Oct 2005
Posts: 98
S
starpossen Offline OP
Babel fish
starpossen  Offline OP
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

Re: Onjoin if nick is guest then #151081
14/06/06 08:17 PM
14/06/06 08:17 PM
Joined: Dec 2002
Posts: 1,245
California, doooood
M
MikeChat Offline
Hoopy frood
MikeChat  Offline
Hoopy frood
M

Joined: Dec 2002
Posts: 1,245
California, doooood
smile
no problem