Menu

nickserv/chanserv on dalnet

Help
Robin
2003-08-11
2003-08-12
  • Robin

    Robin - 2003-08-11

    how do i do a nickserv or chanserv command? when i do eg. a nickserv identify, the bot actually outputs "/nickserv identiry user pass"...

    tia

     
    • Anonymous

      Anonymous - 2003-08-11

      This is the function I wrote:

          function register_nick(&$irc)
          {
              $irc->message(SMARTIRC_TYPE_QUERY, 'nickserv', 'register somepass');
          }

      You would need to change the query message to match the syntax required by your specific services.

      I use the following actionhandler...

      $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!register nick', $bot, 'register_nick');

       
    • Wild Bill

      Wild Bill - 2003-08-11

      You can make your bot automatically identify with NickServ when connecting. 5th parameter of login().

      Example: $irc->login('NICKNAME', 'Net_SmartIRC Client '.SMARTIRC_VERSION, 8, 'USERNAME', 'PASSWORD');

       
    • Robin

      Robin - 2003-08-12

      wildbill86, i tried that before posting here, but it simply didn't work, i'll try again and if it still doesn't work naked-geeks's method
      thanks both!

       
    • Robin

      Robin - 2003-08-12

      hmmmm strange, now the login() function works... i guess there is a delay after registering before you can identify
      oh well, thanks again both :)

       

Log in to post a comment.