Changeset ebaebfe


Ignore:
Timestamp:
2010-03-27T01:57:00Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4be8239
Parents:
3ddb7477
Message:

PING and QUIT work now, and adding some files that weren't checked in so
far.

Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r3ddb7477 rebaebfe  
    124124        irc->user->host = g_strdup( host );
    125125       
    126         conf_loaddefaults( b );
     126        conf_loaddefaults( irc );
    127127       
    128128        /* Evaluator sets the iconv/oconv structures. */
     
    130130       
    131131        irc_write( irc, ":%s NOTICE AUTH :%s", irc->root->host, "BitlBee-IRCd initialized, please go on" );
     132       
     133        g_free( myhost );
     134        g_free( host );
    132135       
    133136        return irc;
     
    203206       
    204207        while( irc->users )
    205                 irc_user_free( irc, irc->users->data );
     208        {
     209                irc_user_t *iu = irc->users->data;
     210                irc_user_free( irc, iu->nick );
     211        }
    206212       
    207213        if( irc->ping_source_id > 0 )
  • irc.h

    r3ddb7477 rebaebfe  
    139139irc_user_t *irc_user_find( irc_t *irc, const char *nick );
    140140int irc_user_rename( irc_t *irc, const char *old, const char *new );
     141gint irc_user_cmp( gconstpointer a_, gconstpointer b_ );
    141142
    142143#endif
  • irc_commands.c

    r3ddb7477 rebaebfe  
    9494}
    9595
    96 #if 0
    9796static void irc_cmd_quit( irc_t *irc, char **cmd )
    9897{
     
    105104static void irc_cmd_ping( irc_t *irc, char **cmd )
    106105{
    107         irc_write( irc, ":%s PONG %s :%s", irc->myhost, irc->myhost, cmd[1]?cmd[1]:irc->myhost );
    108 }
    109 
     106        irc_write( irc, ":%s PONG %s :%s", irc->root->host,
     107                   irc->root->host, cmd[1]?cmd[1]:irc->root->host );
     108}
     109
     110#if 0
    110111static void irc_cmd_oper( irc_t *irc, char **cmd )
    111112{
     
    580581        { "user",        4, irc_cmd_user,        IRC_CMD_PRE_LOGIN },
    581582        { "nick",        1, irc_cmd_nick,        0 },
    582 #if 0
    583583        { "quit",        0, irc_cmd_quit,        0 },
    584584        { "ping",        0, irc_cmd_ping,        0 },
     585#if 0
    585586        { "oper",        2, irc_cmd_oper,        IRC_CMD_LOGGED_IN },
    586587        { "mode",        1, irc_cmd_mode,        IRC_CMD_LOGGED_IN },
Note: See TracChangeset for help on using the changeset viewer.