RAW Code

By MaxwellS on Oct 09, 2018

RAW Code
Good morning guys.
Need your help with a code please.

on !*:join:#sound:{ .enable #regchk | /timerwhois 1 10 whois $nick }

regchk off

raw 307:: { /msg #soundops %reg.nick 7,1512 $2 01 is a Registered Nick | %reg.chk = 1 }
raw 318:
: {
if (!%reg.chk) { /msg #soundops %reg.nick - 7,1512 $2 01 is 4 NOT 01 a registered nick }
unset %reg.*
.disable #regchk
halt
}

regchk end

}

When a /whois is done on a nick, there is a line that says "Maxwell is logged in as Maxwell"
In the above code, what would be the RAW Code for the logged in as ? and how do I enter it.

The above code is used on a bot.

Many thanks

Comments

Sign in to comment.
DragonRyder   -  Dec 30, 2018

the raw numerics involved in a /whois I believe are as follows:
Raw Numerics: 276, 301, 307, 310, 311, 312, 313, 317, 318, 319, 320, 330, 335, 378, 379 and 671

The following snippet will echo the results to your active screen. Modify how you like.

raw 276:: { echo -a ¤Client Cert Fingerprint: $7 | halt }
raw 301:
: {
echo -a $smb ¤ $+ $2 is Away. Reason Stated: $3- $+
else { echo -a $smb $2 is Away. $sv(Reason,$3-) }
halt
}
raw 307:: { echo -a $smb ¤User Is A Registered Nick | halt }
raw 310:
: { echo -a ¤Helpful: $2 is available for help. | halt }
raw 311:: {
set -u1 %x 1
echo -a ¤WhoIs
echo -a ¤Nick: $2
echo -a ¤IdentD: $3
echo -a ¤Real Name: $6-
echo -a ¤Address: $+($2,!,$3,@,$4)
halt
}
raw 312:
: {
echo -a ¤Server Name: $3
echo -a ¤Server Info: $remove($4-,$chr(58))
halt
}
raw 313:: { echo -a ¤IRC Status: $5- | halt }
raw 317:
: {
echo -a ¤Has Been Signed On For: $replace($duration($calc($ctime - $4)),wk, Week,min, Minute,sec, Secound,day, Day,hr, Hour)
echo -a ¤Has Been Idle For: $replace($duration($3),wk, Week,min, Minute,sec, Secound,day, Day,hr, Hour)
halt
}
raw 318:: { echo -a /End Of WhoIs | halt }
raw 319:
: { echo -a Channels: $+ $replace($3-,~,~,&,&,@,@,%,%,+,+) | halt }
raw 320:: { echo -a ¤IRC Admin Info: $3- | halt }
raw 330:
: { echo -a ¤Logged In As: $3 | halt }
raw 335:: { echo -a ¤User Is A Bot | halt }
raw 378:
: { echo -a ¤Host: $6 ¤IP: $7 | halt }
raw 379:: { echo -a ¤User Modes: $6- | halt }
raw 671:
: { echo -a ¤Client Is Using A Secure Connection | halt }

DragonRyder  -  Dec 30, 2018

there is an asterisk between the :: so it should look like :*:

Sign in to comment

Alexandru   -  Oct 15, 2018

Place the line:

raw *:*: echo -s ( $+ $numeric $+ ) $1-

above all the raw lines in the script and make the whois. You will see the numeric number associated to that raw. The raw number for logging is: 330

 Respond  
simo   -  Oct 14, 2018

You could try adding this

raw 330:*:{ msg #soundops $2-  }
 Respond  
ovelayer   -  Oct 11, 2018

if your just checking if a nick is registered or not or the status of identification i would use /ns status
then you can use notice events instead of raws.and collecting a bunch of unnecessary information

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.