mIRC Home    About    Download    Register    News    Help

Print Thread
RAW 307 - Message unid'd users on :JOIN:#: #171429 24/02/07 09:08 AM
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
Code:
on *: JOIN:#: WHOIS $nick raw 307:*: {
  if (identified == $4) {halt}
  else
  /notice $nick You're not ID'd
}


There is my code at present.. I don't know enough about raws.. thanks in advance if you can help me. I just want to send a notice to users who are not identified when they join channels.

Re: RAW 307 - Message unid'd users on :JOIN:#: [Re: Xiad] #171430 24/02/07 09:41 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
I dont know your network or its replies, but looking at what you presented these are two seperate events.

on *:join:#:/whois $nick
raw 307:*:{
if ($4 == identified) halt
.notice $nick You're not ID'd!
}

Re: RAW 307 - Message unid'd users on :JOIN:#: [Re: DJ_Sol] #171435 24/02/07 11:24 AM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
Code:
on *:join:#: {
 set %join.whois.ident. [ $+ [ $nick ] ] 1
 whois $nick
}
raw 307:*:{
 if (%join.whois.ident. [ $+ [ $2 ] ] == 1) {
  if ($4 != identified) {
   .notice $2 You're not ID'd!
  }
  unset %join.whois.ident. [ $+ [ $2 ] ]
 }
}

$nick dosen't work in RAW events. You will have to find out what $x is the nick, but generaly $2 will be the nickname.
Also, don't leave out brackets, as it slows the script down as mIRC will have to place them itsef, and using /halt is generally a bad idea. I would suggest using return in its place (unless its in a alias where you want to halt the script completely, then you would use /halt).


Those who can, cannot. Those who cannot, can.
Re: RAW 307 - Message unid'd users on :JOIN:#: [Re: Kardafol] #171445 24/02/07 01:17 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Originally Posted By: Kardafol
(unless its in a alias where you want to halt the script completely, then you would use /halt).


Even then, I'd use RETURN. About the only time I'd use HALT instead is with an on INPUT event when I want to prevent seeing the text I type for one reason or another.

As for the original question, I don't really deal with RAWs much, sorry.


Invision Support
#Invision on irc.irchighway.net