Changeset ebaebfe
- Timestamp:
- 2010-03-27T01:57:00Z (15 years ago)
- Branches:
- master
- Children:
- 4be8239
- Parents:
- 3ddb7477
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r3ddb7477 rebaebfe 124 124 irc->user->host = g_strdup( host ); 125 125 126 conf_loaddefaults( b);126 conf_loaddefaults( irc ); 127 127 128 128 /* Evaluator sets the iconv/oconv structures. */ … … 130 130 131 131 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 ); 132 135 133 136 return irc; … … 203 206 204 207 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 } 206 212 207 213 if( irc->ping_source_id > 0 ) -
irc.h
r3ddb7477 rebaebfe 139 139 irc_user_t *irc_user_find( irc_t *irc, const char *nick ); 140 140 int irc_user_rename( irc_t *irc, const char *old, const char *new ); 141 gint irc_user_cmp( gconstpointer a_, gconstpointer b_ ); 141 142 142 143 #endif -
irc_commands.c
r3ddb7477 rebaebfe 94 94 } 95 95 96 #if 097 96 static void irc_cmd_quit( irc_t *irc, char **cmd ) 98 97 { … … 105 104 static void irc_cmd_ping( irc_t *irc, char **cmd ) 106 105 { 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 110 111 static void irc_cmd_oper( irc_t *irc, char **cmd ) 111 112 { … … 580 581 { "user", 4, irc_cmd_user, IRC_CMD_PRE_LOGIN }, 581 582 { "nick", 1, irc_cmd_nick, 0 }, 582 #if 0583 583 { "quit", 0, irc_cmd_quit, 0 }, 584 584 { "ping", 0, irc_cmd_ping, 0 }, 585 #if 0 585 586 { "oper", 2, irc_cmd_oper, IRC_CMD_LOGGED_IN }, 586 587 { "mode", 1, irc_cmd_mode, IRC_CMD_LOGGED_IN },
Note: See TracChangeset
for help on using the changeset viewer.