BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: durroch on July 19, 2008, 10:20:29 am

Title: Auto Identifying With Nickserv
Post by: durroch on July 19, 2008, 10:20:29 am
I wasn't sure where I should put this so I'll put it here and it can get moved if need be.  I was in the situation where I need my bot to auto identify itself to nickserv before it joined the channel so chanserv would give my bot protected (&) status and would not get kicked for flooding.  You'll first have to register the nick of your bot with nickserv before this works (obviously).

So what I did is add one line of code to the IRC.php module around line: 660.  Just after this line
Code: [Select]
$this -> irc -> login($this -> bot -> core("settings") -> get("Irc", "Nick"), 'BeBot', 0, 'BeBot');
Add this line:
Code: [Select]
$this -> irc -> message(SMARTIRC_TYPE_QUERY, 'nickserv', 'identify password');
[CODE]
[/code]
SimplePortal 2.3.7 © 2008-2024, SimplePortal