Auto identify
Prev
Next

Auto identify

If you intend to use IRC on a regular basis you will probably want to register your nickname. This protects your nickname so that only you can use it. On DALnet, after you log on, you register your nickname using the command /msg nickserv register PASSWORD, where PASSWORD is your password. You'll get a confirmation your nickname has been registered.

Then each time you log on to DALnet you get a message asking you to identify yourself. You will then need to type /msg nickserv identify PASSWORD.

KSirc can identify you automatically when you log into any channel. You simply need to add the following Perl script in your home directory:

The following script will work on Freenode. This script should be saved as .sircrc.pl in your home directory. When you run KSirc, this script will automatically have you identified.

sub hook_nick_notice {
my $n = shift;
my $m = shift;


if($who =~ /NickServ/){
if($m =~ /If this is your nickname/){
$silent = 1; 
&msg("nickserv", "identify XXXXXX");
$silent = 0; 
}
}
}
&addhook("notice", "nick_notice");   # join on the "end of MOTD" numeric

Replace XXXXXX with your password.

The above script will work on other networks than Freenode where nickserv sends you the request "identify" but on some networks like Undernet you will need the following script:

sub hook_connected {
if($server =~ /undernet.org$/){
	&msg("X\@channels.undernet.org", "login YOUR_NAME XXXX");
		&docommand("umode +x");
}
}
&addhook("255", "connected");   # join on the "end of MOTD" numeric

Replace YOUR_NAME with your login name and XXXXXX with your password.

You can find more about SIRC programming on this page: http://www.iagora.com/~espel/sirc/PROGRAMMING

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team