Changeset a199d33 for irc.c


Ignore:
Timestamp:
2008-03-29T22:19:17Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
18ff38f
Parents:
8968133
Message:

Closing bug #209: The PASS command can now be used to identify yourself
to BitlBee. The advantage: No more messing with NickServ hooks. Just set
a server password.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r8968133 ra199d33  
    736736        irc_spawn( irc, u );
    737737       
    738         irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the \x02help\x02 command. Lots of FAQs are answered there." );
     738        irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\n"
     739                          "If you've never used BitlBee before, please do read the help "
     740                          "information using the \x02help\x02 command. Lots of FAQs are "
     741                          "answered there.\n"
     742                          "If you already have an account on this server, just use the "
     743                          "\x02identify\x02 command to identify yourself." );
    739744       
    740745        if( global.conf->runmode == RUNMODE_FORKDAEMON || global.conf->runmode == RUNMODE_DAEMON )
     
    742747       
    743748        irc->status |= USTATUS_LOGGED_IN;
     749       
     750        /* This is for bug #209 (use PASS to identify to NickServ). */
     751        if( irc->password != NULL )
     752        {
     753                char *send_cmd[] = { "identify", g_strdup( irc->password ), NULL };
     754               
     755                irc_setpass( irc, NULL );
     756                root_command( irc, send_cmd );
     757                g_free( send_cmd[1] );
     758        }
    744759}
    745760
Note: See TracChangeset for help on using the changeset viewer.