mIRC Homepage
Posted By: Xiad RAW 307 - Message unid'd users on :JOIN:#: - 24/02/07 09:08 AM
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.
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!
}
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).
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.
© mIRC Discussion Forums