Changeset 84b045d
- Timestamp:
- 2007-04-16T01:03:08Z (18 years ago)
- Branches:
- master
- Children:
- 6bbb939
- Parents:
- c2fb3809
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rc2fb3809 r84b045d 12 12 objects = account.o bitlbee.o conf.o crypting.o help.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o $(STORAGE_OBJS) unix.o user.o 13 13 headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ini.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h url.h user.h protocols/http_client.h protocols/md5.h protocols/nogaim.h protocols/proxy.h protocols/sha.h protocols/ssl_client.h 14 subdirs = protocols lib14 subdirs = lib protocols 15 15 16 16 # Expansion of variables -
irc.c
rc2fb3809 r84b045d 1037 1037 else if( c && c->ic && c->ic->acc && c->ic->acc->prpl ) 1038 1038 { 1039 return( bim_chat_msg( c, s, 0 ) );1039 return( imc_chat_msg( c, s, 0 ) ); 1040 1040 } 1041 1041 … … 1052 1052 1053 1053 u->sendbuf[u->sendbuf_len-2] = 0; /* Cut off the last newline */ 1054 bim_buddy_msg( u->ic, u->handle, u->sendbuf, u->sendbuf_flags );1054 imc_buddy_msg( u->ic, u->handle, u->sendbuf, u->sendbuf_flags ); 1055 1055 1056 1056 g_free( u->sendbuf ); … … 1104 1104 else 1105 1105 { 1106 bim_buddy_msg( u->ic, u->handle, msg, flags );1106 imc_buddy_msg( u->ic, u->handle, msg, flags ); 1107 1107 } 1108 1108 } -
irc_commands.c
rc2fb3809 r84b045d 463 463 464 464 if( ic && ic->flags & OPT_LOGGED_IN ) 465 bim_set_away( ic, u->away );465 imc_set_away( ic, u->away ); 466 466 } 467 467 } -
protocols/jabber/io.c
rc2fb3809 r84b045d 117 117 jd->fd = -1; 118 118 119 imc _error( ic, "Short write() to server" );119 imcb_error( ic, "Short write() to server" ); 120 120 imc_logout( ic, TRUE ); 121 121 return FALSE; … … 160 160 if( xt_feed( jd->xt, buf, st ) < 0 ) 161 161 { 162 imc _error( ic, "XML stream error" );162 imcb_error( ic, "XML stream error" ); 163 163 imc_logout( ic, TRUE ); 164 164 return FALSE; … … 203 203 if( set_getbool( &ic->acc->set, "tls" ) ) 204 204 { 205 imc _error( ic, "TLS is turned on for this "205 imcb_error( ic, "TLS is turned on for this " 206 206 "account, but is not supported by this server" ); 207 207 imc_logout( ic, FALSE ); … … 216 216 else 217 217 { 218 imc _error( ic, "XML stream error" );218 imcb_error( ic, "XML stream error" ); 219 219 imc_logout( ic, TRUE ); 220 220 return FALSE; … … 227 227 jd->fd = -1; 228 228 229 imc _error( ic, "Error while reading from server" );229 imcb_error( ic, "Error while reading from server" ); 230 230 imc_logout( ic, TRUE ); 231 231 return FALSE; … … 242 242 if( source == -1 ) 243 243 { 244 imc _error( ic, "Could not connect to server" );244 imcb_error( ic, "Could not connect to server" ); 245 245 imc_logout( ic, TRUE ); 246 246 return FALSE; 247 247 } 248 248 249 imc _log( ic, "Connected to server, logging in" );249 imcb_log( ic, "Connected to server, logging in" ); 250 250 251 251 return jabber_start_stream( ic ); … … 263 263 jd->ssl = NULL; 264 264 265 imc _error( ic, "Could not connect to server" );265 imcb_error( ic, "Could not connect to server" ); 266 266 imc_logout( ic, TRUE ); 267 267 return FALSE; 268 268 } 269 269 270 imc _log( ic, "Connected to server, logging in" );270 imcb_log( ic, "Connected to server, logging in" ); 271 271 272 272 return jabber_start_stream( ic ); … … 297 297 if( c && ( !trytls && !set_getbool( &ic->acc->set, "tls" ) ) ) 298 298 { 299 imc _error( ic, "Server requires TLS connections, but TLS is turned off for this account" );299 imcb_error( ic, "Server requires TLS connections, but TLS is turned off for this account" ); 300 300 imc_logout( ic, FALSE ); 301 301 … … 327 327 if( !trytls && set_getbool( &ic->acc->set, "tls" ) ) 328 328 { 329 imc _error( ic, "TLS is turned on for this account, but is not supported by this server" );329 imcb_error( ic, "TLS is turned on for this account, but is not supported by this server" ); 330 330 imc_logout( ic, FALSE ); 331 331 … … 417 417 jd->w_inpa = jd->r_inpa = 0; 418 418 419 imc _log( ic, "Converting stream to TLS" );419 imcb_log( ic, "Converting stream to TLS" ); 420 420 421 421 jd->ssl = ssl_starttls( jd->fd, jabber_connected_ssl, ic ); … … 453 453 if( type == NULL ) 454 454 { 455 imc _error( ic, "Unknown stream error reported by server" );455 imcb_error( ic, "Unknown stream error reported by server" ); 456 456 imc_logout( ic, allow_reconnect ); 457 457 return XT_ABORT; … … 463 463 if( strcmp( type, "conflict" ) == 0 ) 464 464 { 465 imc _error( ic, "Account and resource used from a different location" );465 imcb_error( ic, "Account and resource used from a different location" ); 466 466 allow_reconnect = FALSE; 467 467 } 468 468 else 469 469 { 470 imc _error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );470 imcb_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" ); 471 471 } 472 472 -
protocols/jabber/iq.c
rc2fb3809 r84b045d 39 39 if( !type ) 40 40 { 41 imc _error( ic, "Received IQ packet without type." );41 imcb_error( ic, "Received IQ packet without type." ); 42 42 imc_logout( ic, TRUE ); 43 43 return XT_ABORT; … … 60 60 61 61 if( entry == NULL ) 62 imc _log( ic, "WARNING: Received IQ-%s packet with unknown/expired ID %s!", type, s );62 imcb_log( ic, "WARNING: Received IQ-%s packet with unknown/expired ID %s!", type, s ); 63 63 else if( entry->func ) 64 64 return entry->func( ic, node, entry->node ); … … 69 69 !( s = xt_find_attr( c, "xmlns" ) ) ) 70 70 { 71 imc _log( ic, "WARNING: Received incomplete IQ-%s packet", type );71 imcb_log( ic, "WARNING: Received incomplete IQ-%s packet", type ); 72 72 return XT_HANDLED; 73 73 } … … 132 132 !( s = xt_find_attr( c, "xmlns" ) ) ) 133 133 { 134 imc _log( ic, "WARNING: Received incomplete IQ-%s packet", type );134 imcb_log( ic, "WARNING: Received incomplete IQ-%s packet", type ); 135 135 return XT_HANDLED; 136 136 } … … 154 154 else 155 155 { 156 imc _log( ic, "WARNING: %s tried to fake a roster push!", s ? s : "(unknown)" );156 imcb_log( ic, "WARNING: %s tried to fake a roster push!", s ? s : "(unknown)" ); 157 157 158 158 xt_free_node( reply ); … … 219 219 if( !( query = xt_find_node( node->children, "query" ) ) ) 220 220 { 221 imc _log( ic, "WARNING: Received incomplete IQ packet while authenticating" );221 imcb_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); 222 222 imc_logout( ic, FALSE ); 223 223 return XT_HANDLED; … … 258 258 xt_free_node( reply ); 259 259 260 imc _error( ic, "Can't find suitable authentication method" );260 imcb_error( ic, "Can't find suitable authentication method" ); 261 261 imc_logout( ic, FALSE ); 262 262 return XT_ABORT; … … 277 277 if( !( type = xt_find_attr( node, "type" ) ) ) 278 278 { 279 imc _log( ic, "WARNING: Received incomplete IQ packet while authenticating" );279 imcb_log( ic, "WARNING: Received incomplete IQ packet while authenticating" ); 280 280 imc_logout( ic, FALSE ); 281 281 return XT_HANDLED; … … 284 284 if( strcmp( type, "error" ) == 0 ) 285 285 { 286 imc _error( ic, "Authentication failure" );286 imcb_error( ic, "Authentication failure" ); 287 287 imc_logout( ic, FALSE ); 288 288 return XT_ABORT; … … 311 311 if( c && c->text_len && ( s = strchr( c->text, '/' ) ) && 312 312 strcmp( s + 1, set_getstr( &ic->acc->set, "resource" ) ) != 0 ) 313 imc _log( ic, "Server changed session resource string to `%s'", s + 1 );313 imcb_log( ic, "Server changed session resource string to `%s'", s + 1 ); 314 314 315 315 jd->flags &= ~JFLAG_WAIT_BIND; … … 334 334 int st; 335 335 336 imc _log( ic, "Authenticated, requesting buddy list" );336 imcb_log( ic, "Authenticated, requesting buddy list" ); 337 337 338 338 node = xt_new_node( "query", NULL, NULL ); … … 353 353 if( !( query = xt_find_node( node->children, "query" ) ) ) 354 354 { 355 imc _log( ic, "WARNING: Received NULL roster packet" );355 imcb_log( ic, "WARNING: Received NULL roster packet" ); 356 356 return XT_HANDLED; 357 357 } … … 397 397 398 398 if( initial ) 399 imc _connected( ic );399 imcb_connected( ic ); 400 400 401 401 return XT_HANDLED; … … 428 428 { 429 429 s = xt_find_attr( orig, "to" ); /* If this returns NULL something's wrong.. */ 430 imc _log( ic, "Could not retrieve vCard of %s", s ? s : "(NULL)" );430 imcb_log( ic, "Could not retrieve vCard of %s", s ? s : "(NULL)" ); 431 431 return XT_HANDLED; 432 432 } … … 536 536 /* *sigh* */ 537 537 538 imc _log( ic, "%s", reply->str );538 imcb_log( ic, "%s", reply->str ); 539 539 g_string_free( reply, TRUE ); 540 540 -
protocols/jabber/jabber.c
rc2fb3809 r84b045d 59 59 static void jabber_login( account_t *acc ) 60 60 { 61 struct im_connection *ic = imc _new( acc );61 struct im_connection *ic = imcb_new( acc ); 62 62 struct jabber_data *jd = g_new0( struct jabber_data, 1 ); 63 63 struct ns_srv_reply *srv = NULL; … … 72 72 if( jd->server == NULL ) 73 73 { 74 imc _error( ic, "Incomplete account name (format it like <username@jabberserver.name>)" );74 imcb_error( ic, "Incomplete account name (format it like <username@jabberserver.name>)" ); 75 75 imc_logout( ic, FALSE ); 76 76 return; … … 159 159 connect_to = jd->server; 160 160 161 imc _log( ic, "Connecting" );161 imcb_log( ic, "Connecting" ); 162 162 163 163 if( set_getint( &acc->set, "port" ) < JABBER_PORT_MIN || 164 164 set_getint( &acc->set, "port" ) > JABBER_PORT_MAX ) 165 165 { 166 imc _log( ic, "Incorrect port number, must be in the %d-%d range",166 imcb_log( ic, "Incorrect port number, must be in the %d-%d range", 167 167 JABBER_PORT_MIN, JABBER_PORT_MAX ); 168 168 imc_logout( ic, FALSE ); … … 186 186 if( jd->fd == -1 ) 187 187 { 188 imc _error( ic, "Could not connect to server" );188 imcb_error( ic, "Could not connect to server" ); 189 189 imc_logout( ic, TRUE ); 190 190 } … … 285 285 while( bud ) 286 286 { 287 imc _log( ic, "Buddy %s (%d) information:\nAway state: %s\nAway message: %s",287 imcb_log( ic, "Buddy %s (%d) information:\nAway state: %s\nAway message: %s", 288 288 bud->full_jid, bud->priority, 289 289 bud->away_state ? bud->away_state->full_name : "(none)", -
protocols/jabber/jabber_util.c
rc2fb3809 r84b045d 224 224 225 225 if( find_buddy( bla->ic, bla->handle ) == NULL ) 226 show_got_added( bla->ic, bla->handle, NULL );226 imcb_ask_add( bla->ic, bla->handle, NULL ); 227 227 228 228 g_free( bla->handle ); … … 247 247 248 248 buf = g_strdup_printf( "The user %s wants to add you to his/her buddy list.", handle ); 249 do_ask_dialog( ic, buf, bla, jabber_buddy_ask_yes, jabber_buddy_ask_no );249 imcb_ask( ic, buf, bla, jabber_buddy_ask_yes, jabber_buddy_ask_no ); 250 250 g_free( buf ); 251 251 } -
protocols/jabber/presence.c
rc2fb3809 r84b045d 41 41 { 42 42 if( set_getbool( &ic->irc->set, "debug" ) ) 43 imc _log( ic, "WARNING: Could not handle presence information from JID: %s", from );43 imcb_log( ic, "WARNING: Could not handle presence information from JID: %s", from ); 44 44 return XT_HANDLED; 45 45 } … … 74 74 { 75 75 if( set_getbool( &ic->irc->set, "debug" ) ) 76 imc _log( ic, "WARNING: Received presence information from unknown JID: %s", from );76 imcb_log( ic, "WARNING: Received presence information from unknown JID: %s", from ); 77 77 return XT_HANDLED; 78 78 } … … 103 103 { 104 104 /* Not sure about this one, actually... */ 105 imc _log( ic, "%s just accepted your authorization request", from );105 imcb_log( ic, "%s just accepted your authorization request", from ); 106 106 } 107 107 else if( strcmp( type, "unsubscribe" ) == 0 || strcmp( type, "unsubscribed" ) == 0 ) -
protocols/jabber/sasl.c
rc2fb3809 r84b045d 38 38 IQ authentication. Strange things happen when you try 39 39 to do both... */ 40 imc _log( ic, "XMPP 1.0 non-compliant server seems to support SASL, please report this as a BitlBee bug!" );40 imcb_log( ic, "XMPP 1.0 non-compliant server seems to support SASL, please report this as a BitlBee bug!" ); 41 41 return XT_HANDLED; 42 42 } … … 45 45 if( !s || strcmp( s, XMLNS_SASL ) != 0 ) 46 46 { 47 imc _log( ic, "Stream error while authenticating" );47 imcb_log( ic, "Stream error while authenticating" ); 48 48 imc_logout( ic, FALSE ); 49 49 return XT_ABORT; … … 63 63 if( !sup_plain && !sup_digest ) 64 64 { 65 imc _error( ic, "No known SASL authentication schemes supported" );65 imcb_error( ic, "No known SASL authentication schemes supported" ); 66 66 imc_logout( ic, FALSE ); 67 67 return XT_ABORT; … … 280 280 281 281 error: 282 imc _error( ic, "Incorrect SASL challenge received" );282 imcb_error( ic, "Incorrect SASL challenge received" ); 283 283 imc_logout( ic, FALSE ); 284 284 … … 304 304 if( !s || strcmp( s, XMLNS_SASL ) != 0 ) 305 305 { 306 imc _log( ic, "Stream error while authenticating" );306 imcb_log( ic, "Stream error while authenticating" ); 307 307 imc_logout( ic, FALSE ); 308 308 return XT_ABORT; … … 311 311 if( strcmp( node->name, "success" ) == 0 ) 312 312 { 313 imc _log( ic, "Authentication finished" );313 imcb_log( ic, "Authentication finished" ); 314 314 jd->flags |= JFLAG_AUTHENTICATED | JFLAG_STREAM_RESTART; 315 315 } 316 316 else if( strcmp( node->name, "failure" ) == 0 ) 317 317 { 318 imc _error( ic, "Authentication failure" );318 imcb_error( ic, "Authentication failure" ); 319 319 imc_logout( ic, FALSE ); 320 320 return XT_ABORT; -
protocols/msn/msn.c
rc2fb3809 r84b045d 39 39 static void msn_login( account_t *acc ) 40 40 { 41 struct im_connection *ic = imc _new( acc );41 struct im_connection *ic = imcb_new( acc ); 42 42 struct msn_data *md = g_new0( struct msn_data, 1 ); 43 43 … … 47 47 if( strchr( acc->user, '@' ) == NULL ) 48 48 { 49 imc _error( ic, "Invalid account name" );49 imcb_error( ic, "Invalid account name" ); 50 50 imc_logout( ic, FALSE ); 51 51 return; 52 52 } 53 53 54 imc _log( ic, "Connecting" );54 imcb_log( ic, "Connecting" ); 55 55 56 56 md->fd = proxy_connect( "messenger.hotmail.com", 1863, msn_ns_connected, ic ); 57 57 if( md->fd < 0 ) 58 58 { 59 imc _error( ic, "Could not connect to server" );59 imcb_error( ic, "Could not connect to server" ); 60 60 imc_logout( ic, TRUE ); 61 61 return; … … 96 96 m = l->data; 97 97 98 imc _log( ic, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who );98 imcb_log( ic, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who ); 99 99 g_free( m->who ); 100 100 g_free( m->text ); … … 228 228 { 229 229 /* Just make an URL and let the user fetch the info */ 230 imc _log( ic, "%s\n%s: %s%s", _("User Info"), _("For now, fetch yourself"), PROFILE_URL, who );230 imcb_log( ic, "%s\n%s: %s%s", _("User Info"), _("For now, fetch yourself"), PROFILE_URL, who ); 231 231 } 232 232 … … 373 373 if( strlen( value ) > 129 ) 374 374 { 375 imc _log( ic, "Maximum name length exceeded" );375 imcb_log( ic, "Maximum name length exceeded" ); 376 376 return NULL; 377 377 } -
protocols/msn/msn_util.c
rc2fb3809 r84b045d 36 36 if( st != len ) 37 37 { 38 imc _error( ic, "Short write() to main server" );38 imcb_error( ic, "Short write() to main server" ); 39 39 imc_logout( ic, TRUE ); 40 40 return( 0 ); … … 46 46 int msn_logged_in( struct im_connection *ic ) 47 47 { 48 imc _connected( ic );48 imcb_connected( ic ); 49 49 50 50 return( 0 ); … … 95 95 96 96 if( find_buddy( bla->ic, bla->handle ) == NULL ) 97 show_got_added( bla->ic, bla->handle, NULL );97 imcb_ask_add( bla->ic, bla->handle, NULL ); 98 98 99 99 g_free( bla->handle ); … … 123 123 "The user %s (%s) wants to add you to his/her buddy list.", 124 124 handle, realname ); 125 do_ask_dialog( ic, buf, bla, msn_buddy_ask_yes, msn_buddy_ask_no );125 imcb_ask( ic, buf, bla, msn_buddy_ask_yes, msn_buddy_ask_no ); 126 126 } 127 127 -
protocols/msn/ns.c
rc2fb3809 r84b045d 47 47 if( source == -1 ) 48 48 { 49 imc _error( ic, "Could not connect to server" );49 imcb_error( ic, "Could not connect to server" ); 50 50 imc_logout( ic, TRUE ); 51 51 return FALSE; … … 76 76 { 77 77 ic->inpa = b_input_add( md->fd, GAIM_INPUT_READ, msn_ns_callback, ic ); 78 imc _log( ic, "Connected to server, waiting for reply" );78 imcb_log( ic, "Connected to server, waiting for reply" ); 79 79 } 80 80 … … 89 89 if( msn_handler( md->handler ) == -1 ) /* Don't do this on ret == 0, it's already done then. */ 90 90 { 91 imc _error( ic, "Error while reading from server" );91 imcb_error( ic, "Error while reading from server" ); 92 92 imc_logout( ic, TRUE ); 93 93 … … 114 114 if( cmd[2] && strncmp( cmd[2], "MSNP8", 5 ) != 0 ) 115 115 { 116 imc _error( ic, "Unsupported protocol" );116 imcb_error( ic, "Unsupported protocol" ); 117 117 imc_logout( ic, FALSE ); 118 118 return( 0 ); … … 143 143 if( !server ) 144 144 { 145 imc _error( ic, "Syntax error" );145 imcb_error( ic, "Syntax error" ); 146 146 imc_logout( ic, TRUE ); 147 147 return( 0 ); … … 151 151 server = cmd[3]; 152 152 153 imc _log( ic, "Transferring to other server" );153 imcb_log( ic, "Transferring to other server" ); 154 154 155 155 md->fd = proxy_connect( server, port, msn_ns_connected, ic ); … … 162 162 if( !server ) 163 163 { 164 imc _error( ic, "Syntax error" );164 imcb_error( ic, "Syntax error" ); 165 165 imc_logout( ic, TRUE ); 166 166 return( 0 ); … … 172 172 if( strcmp( cmd[4], "CKI" ) != 0 ) 173 173 { 174 imc _error( ic, "Unknown authentication method for switchboard" );174 imcb_error( ic, "Unknown authentication method for switchboard" ); 175 175 imc_logout( ic, TRUE ); 176 176 return( 0 ); … … 204 204 else 205 205 { 206 imc _error( ic, "Syntax error" );206 imcb_error( ic, "Syntax error" ); 207 207 imc_logout( ic, TRUE ); 208 208 return( 0 ); … … 216 216 if( !passport_get_id( msn_auth_got_passport_id, ic, ic->acc->user, ic->acc->pass, cmd[4] ) ) 217 217 { 218 imc _error( ic, "Error while contacting Passport server" );218 imcb_error( ic, "Error while contacting Passport server" ); 219 219 imc_logout( ic, TRUE ); 220 220 return( 0 ); … … 236 236 } 237 237 238 imc _log( ic, "Authenticated, getting buddy list" );238 imcb_log( ic, "Authenticated, getting buddy list" ); 239 239 240 240 g_snprintf( buf, sizeof( buf ), "SYN %d 0\r\n", ++md->trId ); … … 243 243 else 244 244 { 245 imc _error( ic, "Unknown authentication type" );245 imcb_error( ic, "Unknown authentication type" ); 246 246 imc_logout( ic, FALSE ); 247 247 return( 0 ); … … 252 252 if( num_parts != 4 ) 253 253 { 254 imc _error( ic, "Syntax error" );254 imcb_error( ic, "Syntax error" ); 255 255 imc_logout( ic, TRUE ); 256 256 return( 0 ); … … 261 261 if( md->handler->msglen <= 0 ) 262 262 { 263 imc _error( ic, "Syntax error" );263 imcb_error( ic, "Syntax error" ); 264 264 imc_logout( ic, TRUE ); 265 265 return( 0 ); … … 292 292 if( num_parts != 4 && num_parts != 5 ) 293 293 { 294 imc _error( ic, "Syntax error" );294 imcb_error( ic, "Syntax error" ); 295 295 imc_logout( ic, TRUE ); 296 296 return( 0 ); … … 328 328 if( ic->flags & OPT_LOGGED_IN ) 329 329 { 330 imc _log( ic, "Successfully transferred to different server" );330 imcb_log( ic, "Successfully transferred to different server" ); 331 331 g_snprintf( buf, sizeof( buf ), "CHG %d %s %d\r\n", ++md->trId, md->away_state->code, 0 ); 332 332 return( msn_write( ic, buf, strlen( buf ) ) ); … … 344 344 if( num_parts != 4 ) 345 345 { 346 imc _error( ic, "Syntax error" );346 imcb_error( ic, "Syntax error" ); 347 347 imc_logout( ic, TRUE ); 348 348 return( 0 ); … … 363 363 if( num_parts != 3 ) 364 364 { 365 imc _error( ic, "Syntax error" );365 imcb_error( ic, "Syntax error" ); 366 366 imc_logout( ic, TRUE ); 367 367 return( 0 ); … … 385 385 if( num_parts != 6 ) 386 386 { 387 imc _error( ic, "Syntax error" );387 imcb_error( ic, "Syntax error" ); 388 388 imc_logout( ic, TRUE ); 389 389 return( 0 ); … … 413 413 if( num_parts != 5 ) 414 414 { 415 imc _error( ic, "Syntax error" );415 imcb_error( ic, "Syntax error" ); 416 416 imc_logout( ic, TRUE ); 417 417 return( 0 ); … … 438 438 if( num_parts != 7 ) 439 439 { 440 imc _error( ic, "Syntax error" );440 imcb_error( ic, "Syntax error" ); 441 441 imc_logout( ic, TRUE ); 442 442 return( 0 ); … … 448 448 if( !server ) 449 449 { 450 imc _error( ic, "Syntax error" );450 imcb_error( ic, "Syntax error" ); 451 451 imc_logout( ic, TRUE ); 452 452 return( 0 ); … … 458 458 if( strcmp( cmd[3], "CKI" ) != 0 ) 459 459 { 460 imc _error( ic, "Unknown authentication method for switchboard" );460 imcb_error( ic, "Unknown authentication method for switchboard" ); 461 461 imc_logout( ic, TRUE ); 462 462 return( 0 ); … … 478 478 if( strchr( cmd[4], '@' ) == NULL ) 479 479 { 480 imc _error( ic, "Syntax error" );480 imcb_error( ic, "Syntax error" ); 481 481 imc_logout( ic, TRUE ); 482 482 return( 0 ); … … 501 501 if( cmd[1] && strcmp( cmd[1], "OTH" ) == 0 ) 502 502 { 503 imc _error( ic, "Someone else logged in with your account" );503 imcb_error( ic, "Someone else logged in with your account" ); 504 504 allow_reconnect = FALSE; 505 505 } 506 506 else if( cmd[1] && strcmp( cmd[1], "SSD" ) == 0 ) 507 507 { 508 imc _error( ic, "Terminating session because of server shutdown" );508 imcb_error( ic, "Terminating session because of server shutdown" ); 509 509 } 510 510 else 511 511 { 512 imc _error( ic, "Session terminated by remote server (reason unknown)" );512 imcb_error( ic, "Session terminated by remote server (reason unknown)" ); 513 513 } 514 514 … … 520 520 if( num_parts != 5 ) 521 521 { 522 imc _error( ic, "Syntax error" );522 imcb_error( ic, "Syntax error" ); 523 523 imc_logout( ic, TRUE ); 524 524 return( 0 ); … … 548 548 else if( strcmp( cmd[0], "IPG" ) == 0 ) 549 549 { 550 imc _error( ic, "Received IPG command, we don't handle them yet." );550 imcb_error( ic, "Received IPG command, we don't handle them yet." ); 551 551 552 552 md->handler->msglen = atoi( cmd[1] ); … … 554 554 if( md->handler->msglen <= 0 ) 555 555 { 556 imc _error( ic, "Syntax error" );556 imcb_error( ic, "Syntax error" ); 557 557 imc_logout( ic, TRUE ); 558 558 return( 0 ); … … 564 564 const struct msn_status_code *err = msn_status_by_number( num ); 565 565 566 imc _error( ic, "Error reported by MSN server: %s", err->text );566 imcb_error( ic, "Error reported by MSN server: %s", err->text ); 567 567 568 568 if( err->flags & STATUS_FATAL ) … … 618 618 { 619 619 if( arg1 ) 620 imc _log( ic, "The server is going down for maintenance in %s minutes.", arg1 );620 imcb_log( ic, "The server is going down for maintenance in %s minutes.", arg1 ); 621 621 } 622 622 … … 635 635 if( inbox && folders ) 636 636 { 637 imc _log( ic, "INBOX contains %s new messages, plus %s messages in other folders.", inbox, folders );637 imcb_log( ic, "INBOX contains %s new messages, plus %s messages in other folders.", inbox, folders ); 638 638 } 639 639 } … … 645 645 if( from && fromname ) 646 646 { 647 imc _log( ic, "Received an e-mail message from %s <%s>.", fromname, from );647 imcb_log( ic, "Received an e-mail message from %s <%s>.", fromname, from ); 648 648 } 649 649 } … … 673 673 if( key == NULL ) 674 674 { 675 imc _error( ic, "Error during Passport authentication (%s)",675 imcb_error( ic, "Error during Passport authentication (%s)", 676 676 rep->error_string ? rep->error_string : "Unknown error" ); 677 677 imc_logout( ic, TRUE ); -
protocols/msn/sb.c
rc2fb3809 r84b045d 222 222 g_slist_free( sb->msgq ); 223 223 224 imc _log( ic, "Warning: Closing down MSN switchboard connection with "224 imcb_log( ic, "Warning: Closing down MSN switchboard connection with " 225 225 "unsent message to %s, you'll have to resend it.", 226 226 sb->who ? sb->who : "(unknown)" ); … … 321 321 if( strcmp( cmd[0], "XFR" ) == 0 ) 322 322 { 323 imc _error( ic, "Received an XFR from a switchboard server, unable to comply! This is likely to be a bug, please report it!" );323 imcb_error( ic, "Received an XFR from a switchboard server, unable to comply! This is likely to be a bug, please report it!" ); 324 324 imc_logout( ic, TRUE ); 325 325 return( 0 ); … … 528 528 const struct msn_status_code *err = msn_status_by_number( num ); 529 529 530 imc _error( ic, "Error reported by switchboard server: %s", err->text );530 imcb_error( ic, "Error reported by switchboard server: %s", err->text ); 531 531 532 532 if( err->flags & STATUS_SB_FATAL ) -
protocols/nogaim.c
rc2fb3809 r84b045d 145 145 /* multi.c */ 146 146 147 struct im_connection *imc _new( account_t *acc )147 struct im_connection *imcb_new( account_t *acc ) 148 148 { 149 149 struct im_connection *ic; … … 204 204 } 205 205 206 void imc _log( struct im_connection *ic, char *format, ... )206 void imcb_log( struct im_connection *ic, char *format, ... ) 207 207 { 208 208 va_list params; … … 221 221 } 222 222 223 void imc _error( struct im_connection *ic, char *format, ... )223 void imcb_error( struct im_connection *ic, char *format, ... ) 224 224 { 225 225 va_list params; … … 248 248 } 249 249 250 void imc _connected( struct im_connection *ic )250 void imcb_connected( struct im_connection *ic ) 251 251 { 252 252 user_t *u; … … 260 260 u = user_find( ic->irc, ic->irc->nick ); 261 261 262 imc _log( ic, "Logged in" );262 imcb_log( ic, "Logged in" ); 263 263 264 264 ic->keepalive = b_timeout_add( 60000, send_keepalive, ic ); … … 267 267 /* Also necessary when we're not away, at least for some of the 268 268 protocols. */ 269 bim_set_away( ic, u->away );269 imc_set_away( ic, u->away ); 270 270 } 271 271 … … 300 300 ic->flags |= OPT_LOGGING_OUT; 301 301 302 imc _log( ic, "Signing off.." );302 imcb_log( ic, "Signing off.." ); 303 303 304 304 b_event_remove( ic->keepalive ); … … 334 334 int delay = set_getint( &irc->set, "auto_reconnect_delay" ); 335 335 336 imc _log( ic, "Reconnecting in %d seconds..", delay );336 imcb_log( ic, "Reconnecting in %d seconds..", delay ); 337 337 a->reconnect = b_timeout_add( delay * 1000, auto_reconnect, a ); 338 338 } … … 344 344 /* dialogs.c */ 345 345 346 void do_ask_dialog( struct im_connection *ic, char *msg, void *data, void *doit, void *dont )346 void imcb_ask( struct im_connection *ic, char *msg, void *data, void *doit, void *dont ) 347 347 { 348 348 query_add( ic->irc, ic, msg, doit, dont, data ); … … 360 360 361 361 if( set_getbool( &irc->set, "debug" ) && 0 ) /* This message is too useless */ 362 imc _log( ic, "Receiving user add from handle: %s", handle );362 imcb_log( ic, "Receiving user add from handle: %s", handle ); 363 363 364 364 if( user_findhandle( ic, handle ) ) 365 365 { 366 366 if( set_getbool( &irc->set, "debug" ) ) 367 imc _log( ic, "User already exists, ignoring add request: %s", handle );367 imcb_log( ic, "User already exists, ignoring add request: %s", handle ); 368 368 369 369 return; … … 448 448 449 449 if( ( ic->flags & OPT_LOGGED_IN ) && set_getbool( &ic->irc->set, "display_namechanges" ) ) 450 imc _log( ic, "User `%s' changed name to `%s'", u->nick, u->realname );450 imcb_log( ic, "User `%s' changed name to `%s'", u->nick, u->realname ); 451 451 } 452 452 } … … 475 475 } 476 476 477 void show_got_added( struct im_connection *ic, char *handle, const char *realname )477 void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname ) 478 478 { 479 479 struct show_got_added_data *data = g_new0( struct show_got_added_data, 1 ); … … 512 512 if( set_getbool( &ic->irc->set, "debug" ) || g_strcasecmp( set_getstr( &ic->irc->set, "handle_unknown" ), "ignore" ) != 0 ) 513 513 { 514 imc _log( ic, "serv_got_update() for handle %s:", handle );515 imc _log( ic, "loggedin = %d, type = %d", loggedin, type );514 imcb_log( ic, "serv_got_update() for handle %s:", handle ); 515 imcb_log( ic, "loggedin = %d, type = %d", loggedin, type ); 516 516 } 517 517 … … 551 551 { 552 552 u->away = g_strdup( "Away" ); 553 }554 else if( ( type & UC_UNAVAILABLE ) && ( strcmp( ic->acc->prpl->name, "jabber" ) == 0 ) )555 {556 if( type & UC_DND )557 u->away = g_strdup( "Do Not Disturb" );558 else if( type & UC_XA )559 u->away = g_strdup( "Extended Away" );560 else // if( type & UC_AWAY )561 u->away = g_strdup( "Away" );562 553 } 563 554 else if( ( type & UC_UNAVAILABLE ) && ic->acc->prpl->get_status_string ) … … 593 584 { 594 585 if( set_getbool( &irc->set, "debug" ) ) 595 imc _log( ic, "Ignoring message from unknown handle %s", handle );586 imcb_log( ic, "Ignoring message from unknown handle %s", handle ); 596 587 597 588 return; … … 615 606 else 616 607 { 617 imc _log( ic, "Message from unknown handle %s:", handle );608 imcb_log( ic, "Message from unknown handle %s:", handle ); 618 609 u = user_find( irc, irc->mynick ); 619 610 } … … 685 676 686 677 if( set_getbool( &ic->irc->set, "debug" ) ) 687 imc _log( ic, "You were removed from conversation 0x%x", (int) c );678 imcb_log( ic, "You were removed from conversation 0x%x", (int) c ); 688 679 689 680 if( c ) … … 733 724 irc_privmsg( ic->irc, u, "PRIVMSG", c->channel, "", msg ); 734 725 else 735 imc _log( ic, "Message from/to conversation %s@0x%x (unknown conv/user): %s", who, (int) c, msg );726 imcb_log( ic, "Message from/to conversation %s@0x%x (unknown conv/user): %s", who, (int) c, msg ); 736 727 } 737 728 … … 755 746 756 747 if( set_getbool( &ic->irc->set, "debug" ) ) 757 imc _log( ic, "Creating new conversation: (id=0x%x,handle=%s)", (int) c, handle );748 imcb_log( ic, "Creating new conversation: (id=0x%x,handle=%s)", (int) c, handle ); 758 749 759 750 return c; … … 769 760 770 761 if( set_getbool( &b->ic->irc->set, "debug" ) ) 771 imc _log( b->ic, "User %s added to conversation 0x%x", handle, (int) b );762 imcb_log( b->ic, "User %s added to conversation 0x%x", handle, (int) b ); 772 763 773 764 /* It might be yourself! */ … … 803 794 804 795 if( set_getbool( &b->ic->irc->set, "debug" ) ) 805 imc _log( b->ic, "User %s removed from conversation 0x%x (%s)", handle, (int) b, reason ? reason : "" );796 imcb_log( b->ic, "User %s removed from conversation 0x%x (%s)", handle, (int) b, reason ? reason : "" ); 806 797 807 798 /* It might be yourself! */ … … 929 920 them all from some wrappers. We'll start to define some down here: */ 930 921 931 int bim_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags )922 int imc_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags ) 932 923 { 933 924 char *buf = NULL; … … 946 937 } 947 938 948 int bim_chat_msg( struct groupchat *c, char *msg, int flags )939 int imc_chat_msg( struct groupchat *c, char *msg, int flags ) 949 940 { 950 941 char *buf = NULL; … … 962 953 } 963 954 964 static char * bim_away_alias_find( GList *gcm, char *away );965 966 int bim_set_away( struct im_connection *ic, char *away )955 static char *imc_away_alias_find( GList *gcm, char *away ); 956 957 int imc_set_away( struct im_connection *ic, char *away ) 967 958 { 968 959 GList *m, *ms; … … 995 986 else 996 987 { 997 s = bim_away_alias_find( ms, away );988 s = imc_away_alias_find( ms, away ); 998 989 if( s ) 999 990 { 1000 991 ic->acc->prpl->set_away( ic, s, away ); 1001 992 if( set_getbool( &ic->irc->set, "debug" ) ) 1002 imc _log( ic, "Setting away state to %s", s );993 imcb_log( ic, "Setting away state to %s", s ); 1003 994 } 1004 995 else … … 1009 1000 } 1010 1001 1011 static char * bim_away_alias_list[8][5] =1002 static char *imc_away_alias_list[8][5] = 1012 1003 { 1013 1004 { "Away from computer", "Away", "Extended away", NULL }, … … 1021 1012 }; 1022 1013 1023 static char * bim_away_alias_find( GList *gcm, char *away )1014 static char *imc_away_alias_find( GList *gcm, char *away ) 1024 1015 { 1025 1016 GList *m; 1026 1017 int i, j; 1027 1018 1028 for( i = 0; * bim_away_alias_list[i]; i ++ )1029 { 1030 for( j = 0; bim_away_alias_list[i][j]; j ++ )1031 if( g_strncasecmp( away, bim_away_alias_list[i][j], strlen( bim_away_alias_list[i][j] ) ) == 0 )1019 for( i = 0; *imc_away_alias_list[i]; i ++ ) 1020 { 1021 for( j = 0; imc_away_alias_list[i][j]; j ++ ) 1022 if( g_strncasecmp( away, imc_away_alias_list[i][j], strlen( imc_away_alias_list[i][j] ) ) == 0 ) 1032 1023 break; 1033 1024 1034 if( ! bim_away_alias_list[i][j] ) /* If we reach the end, this row */1025 if( !imc_away_alias_list[i][j] ) /* If we reach the end, this row */ 1035 1026 continue; /* is not what we want. Next! */ 1036 1027 1037 1028 /* Now find an entry in this row which exists in gcm */ 1038 for( j = 0; bim_away_alias_list[i][j]; j ++ )1029 for( j = 0; imc_away_alias_list[i][j]; j ++ ) 1039 1030 { 1040 1031 m = gcm; 1041 1032 while( m ) 1042 1033 { 1043 if( g_strcasecmp( bim_away_alias_list[i][j], m->data ) == 0 )1044 return( bim_away_alias_list[i][j] );1034 if( g_strcasecmp( imc_away_alias_list[i][j], m->data ) == 0 ) 1035 return( imc_away_alias_list[i][j] ); 1045 1036 m = m->next; 1046 1037 } … … 1051 1042 } 1052 1043 1053 void bim_add_allow( struct im_connection *ic, char *handle )1044 void imc_add_allow( struct im_connection *ic, char *handle ) 1054 1045 { 1055 1046 if( g_slist_find_custom( ic->permit, handle, (GCompareFunc) ic->acc->prpl->handle_cmp ) == NULL ) … … 1061 1052 } 1062 1053 1063 void bim_rem_allow( struct im_connection *ic, char *handle )1054 void imc_rem_allow( struct im_connection *ic, char *handle ) 1064 1055 { 1065 1056 GSList *l; … … 1074 1065 } 1075 1066 1076 void bim_add_block( struct im_connection *ic, char *handle )1067 void imc_add_block( struct im_connection *ic, char *handle ) 1077 1068 { 1078 1069 if( g_slist_find_custom( ic->deny, handle, (GCompareFunc) ic->acc->prpl->handle_cmp ) == NULL ) … … 1084 1075 } 1085 1076 1086 void bim_rem_block( struct im_connection *ic, char *handle )1077 void imc_rem_block( struct im_connection *ic, char *handle ) 1087 1078 { 1088 1079 GSList *l; -
protocols/nogaim.h
rc2fb3809 r84b045d 150 150 151 151 /* Request profile info. Free-formatted stuff, the IM module gives back 152 this info via imc _log(). */152 this info via imcb_log(). */ 153 153 void (* get_info) (struct im_connection *, char *who); 154 154 void (* set_my_name) (struct im_connection *, char *name); … … 175 175 #define UC_UNAVAILABLE 1 176 176 177 /* JABBER */ 178 #define UC_AWAY (0x02 | UC_UNAVAILABLE) 179 #define UC_CHAT 0x04 180 #define UC_XA (0x08 | UC_UNAVAILABLE) 181 #define UC_DND (0x10 | UC_UNAVAILABLE) 182 177 /* im_api core stuff. */ 178 void nogaim_init(); 183 179 G_MODULE_EXPORT GSList *get_connections(); 184 180 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); 185 181 G_MODULE_EXPORT void register_protocol(struct prpl *); 186 182 187 /* nogaim.c */ 188 int bim_set_away( struct im_connection *ic, char *away ); 189 int bim_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags ); 190 int bim_chat_msg( struct groupchat *c, char *msg, int flags ); 191 192 void bim_add_allow( struct im_connection *ic, char *handle ); 193 void bim_rem_allow( struct im_connection *ic, char *handle ); 194 void bim_add_block( struct im_connection *ic, char *handle ); 195 void bim_rem_block( struct im_connection *ic, char *handle ); 196 197 void nogaim_init(); 198 char *set_eval_away_devoice( set_t *set, char *value ); 199 200 gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond ); 201 void cancel_auto_reconnect( struct account *a ); 202 203 /* multi.c */ 204 G_MODULE_EXPORT struct im_connection *imc_new( account_t *acc ); 205 G_MODULE_EXPORT void imc_free( struct im_connection *ic ); 206 G_MODULE_EXPORT void imc_log( struct im_connection *ic, char *format, ... ); 207 G_MODULE_EXPORT void imc_error( struct im_connection *ic, char *format, ... ); 208 G_MODULE_EXPORT void imc_connected( struct im_connection *ic ); 183 /* Connection management. */ 184 G_MODULE_EXPORT struct im_connection *imcb_new( account_t *acc ); 185 G_MODULE_EXPORT void imcb_free( struct im_connection *ic ); 186 G_MODULE_EXPORT void imcb_connected( struct im_connection *ic ); 209 187 G_MODULE_EXPORT void imc_logout( struct im_connection *ic, int allow_reconnect ); 210 188 211 /* dialogs.c */ 212 G_MODULE_EXPORT void do_ask_dialog( struct im_connection *ic, char *msg, void *data, void *doit, void *dont ); 213 214 /* list.c */ 215 G_MODULE_EXPORT void add_buddy( struct im_connection *ic, char *group, char *handle, char *realname ); 216 G_MODULE_EXPORT struct buddy *find_buddy( struct im_connection *ic, char *handle ); 217 G_MODULE_EXPORT void signoff_blocked( struct im_connection *ic ); 218 219 G_MODULE_EXPORT void serv_buddy_rename( struct im_connection *ic, char *handle, char *realname ); 220 221 /* buddy_chat.c */ 189 /* Communicating with the user. */ 190 G_MODULE_EXPORT void imcb_log( struct im_connection *ic, char *format, ... ); 191 G_MODULE_EXPORT void imcb_error( struct im_connection *ic, char *format, ... ); 192 G_MODULE_EXPORT void imcb_ask( struct im_connection *ic, char *msg, void *data, void *doit, void *dont ); 193 G_MODULE_EXPORT void imcb_ask_add( struct im_connection *ic, char *handle, const char *realname ); 194 195 /* Groupchats */ 222 196 G_MODULE_EXPORT void add_chat_buddy( struct groupchat *b, char *handle ); 223 197 G_MODULE_EXPORT void remove_chat_buddy( struct groupchat *b, char *handle, char *reason ); 224 225 /* prpl.c */226 G_MODULE_EXPORT void show_got_added( struct im_connection *ic, char *handle, const char *realname );227 228 /* server.c */229 G_MODULE_EXPORT void serv_got_update( struct im_connection *ic, char *handle, int loggedin, int evil, time_t signon, time_t idle, int type, guint caps );230 G_MODULE_EXPORT void serv_got_im( struct im_connection *ic, char *handle, char *msg, guint32 flags, time_t mtime, gint len );231 G_MODULE_EXPORT void serv_got_typing( struct im_connection *ic, char *handle, int timeout, int type );232 198 G_MODULE_EXPORT void serv_got_chat_invite( struct im_connection *ic, char *handle, char *who, char *msg, GList *data ); 233 199 G_MODULE_EXPORT struct groupchat *serv_got_joined_chat( struct im_connection *ic, char *handle ); 234 200 G_MODULE_EXPORT void serv_got_chat_in( struct groupchat *c, char *who, int whisper, char *msg, time_t mtime ); 235 201 G_MODULE_EXPORT void serv_got_chat_left( struct groupchat *c ); 236 237 202 struct groupchat *chat_by_channel( char *channel ); 238 203 struct groupchat *chat_by_id( int id ); 239 204 205 /* Buddy management */ 206 G_MODULE_EXPORT void add_buddy( struct im_connection *ic, char *group, char *handle, char *realname ); 207 G_MODULE_EXPORT struct buddy *find_buddy( struct im_connection *ic, char *handle ); 208 G_MODULE_EXPORT void serv_buddy_rename( struct im_connection *ic, char *handle, char *realname ); 209 210 /* Buddy activity */ 211 G_MODULE_EXPORT void serv_got_update( struct im_connection *ic, char *handle, int loggedin, int evil, time_t signon, time_t idle, int type, guint caps ); 212 G_MODULE_EXPORT void serv_got_im( struct im_connection *ic, char *handle, char *msg, guint32 flags, time_t mtime, gint len ); 213 G_MODULE_EXPORT void serv_got_typing( struct im_connection *ic, char *handle, int timeout, int type ); 214 215 /* Actions, or whatever. */ 216 int imc_set_away( struct im_connection *ic, char *away ); 217 int imc_buddy_msg( struct im_connection *ic, char *handle, char *msg, int flags ); 218 int imc_chat_msg( struct groupchat *c, char *msg, int flags ); 219 220 void imc_add_allow( struct im_connection *ic, char *handle ); 221 void imc_rem_allow( struct im_connection *ic, char *handle ); 222 void imc_add_block( struct im_connection *ic, char *handle ); 223 void imc_rem_block( struct im_connection *ic, char *handle ); 224 225 /* Misc. stuff */ 226 char *set_eval_away_devoice( set_t *set, char *value ); 227 gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond ); 228 void cancel_auto_reconnect( struct account *a ); 229 240 230 #endif -
protocols/oscar/chat.c
rc2fb3809 r84b045d 54 54 continue; 55 55 if (!cur->priv) { 56 imc _error(sess->aux_data, "chat connection with no name!");56 imcb_error(sess->aux_data, "chat connection with no name!"); 57 57 continue; 58 58 } … … 397 397 398 398 if (detaillevel != 0x02) { 399 imc _error(sess->aux_data, "Only detaillevel 0x2 is support at the moment");399 imcb_error(sess->aux_data, "Only detaillevel 0x2 is support at the moment"); 400 400 return 1; 401 401 } … … 615 615 616 616 if (channel != 0x0003) { 617 imc _error(sess->aux_data, "unknown channel!");617 imcb_error(sess->aux_data, "unknown channel!"); 618 618 return 0; 619 619 } -
protocols/oscar/chatnav.c
rc2fb3809 r84b045d 286 286 287 287 if (!(bigblock = aim_gettlv(tlvlist, 0x0004, 1))) { 288 imc _error(sess->aux_data, "no bigblock in top tlv in create room response");288 imcb_error(sess->aux_data, "no bigblock in top tlv in create room response"); 289 289 290 290 aim_freetlvchain(&tlvlist); … … 301 301 302 302 if (detaillevel != 0x02) { 303 imc _error(sess->aux_data, "unknown detaillevel in create room response");303 imcb_error(sess->aux_data, "unknown detaillevel in create room response"); 304 304 aim_freetlvchain(&tlvlist); 305 305 g_free(ck); … … 367 367 368 368 if (!(snac2 = aim_remsnac(sess, snac->id))) { 369 imc _error(sess->aux_data, "received response to unknown request!");369 imcb_error(sess->aux_data, "received response to unknown request!"); 370 370 return 0; 371 371 } 372 372 373 373 if (snac2->family != 0x000d) { 374 imc _error(sess->aux_data, "recieved response that maps to corrupt request!");374 imcb_error(sess->aux_data, "recieved response that maps to corrupt request!"); 375 375 return 0; 376 376 } … … 389 389 ret = parseinfo_create(sess, mod, rx, snac, bs, snac2); 390 390 else 391 imc _error(sess->aux_data, "unknown request subtype");391 imcb_error(sess->aux_data, "unknown request subtype"); 392 392 393 393 if (snac2) -
protocols/oscar/icq.c
rc2fb3809 r84b045d 240 240 if (!(tl = aim_readtlvchain(bs)) || !(datatlv = aim_gettlv(tl, 0x0001, 1))) { 241 241 aim_freetlvchain(&tl); 242 imc _error(sess->aux_data, "corrupt ICQ response\n");242 imcb_error(sess->aux_data, "corrupt ICQ response\n"); 243 243 return 0; 244 244 } -
protocols/oscar/im.c
rc2fb3809 r84b045d 937 937 938 938 if (channel != 0x01) { 939 imc _error(sess->aux_data, "icbm: ICBM recieved on unsupported channel. Ignoring.");939 imcb_error(sess->aux_data, "icbm: ICBM recieved on unsupported channel. Ignoring."); 940 940 return 0; 941 941 } … … 1345 1345 1346 1346 } else { 1347 // imc _error(sess->aux_data, "Unknown TLV encountered");1347 // imcb_error(sess->aux_data, "Unknown TLV encountered"); 1348 1348 } 1349 1349 … … 1517 1517 cookie2 = aimbs_getraw(&bbs, 8); 1518 1518 if (memcmp(cookie, cookie2, 8) != 0) 1519 imc _error(sess->aux_data, "rend: warning cookies don't match!");1519 imcb_error(sess->aux_data, "rend: warning cookies don't match!"); 1520 1520 memcpy(args.cookie, cookie2, 8); 1521 1521 g_free(cookie2); … … 1783 1783 } else { 1784 1784 1785 imc _error(sess->aux_data, "ICBM received on an unsupported channel. Ignoring.");1785 imcb_error(sess->aux_data, "ICBM received on an unsupported channel. Ignoring."); 1786 1786 1787 1787 return 0; -
protocols/oscar/info.c
rc2fb3809 r84b045d 474 474 */ 475 475 #ifdef DEBUG 476 // imc _error(sess->aux_data, G_STRLOC);476 // imcb_error(sess->aux_data, G_STRLOC); 477 477 #endif 478 478 … … 635 635 636 636 if (!origsnac || !origsnac->data) { 637 imc _error(sess->aux_data, "major problem: no snac stored!");637 imcb_error(sess->aux_data, "major problem: no snac stored!"); 638 638 return 0; 639 639 } … … 644 644 (inforeq->infotype != AIM_GETINFO_AWAYMESSAGE) && 645 645 (inforeq->infotype != AIM_GETINFO_CAPABILITIES)) { 646 imc _error(sess->aux_data, "unknown infotype in request!");646 imcb_error(sess->aux_data, "unknown infotype in request!"); 647 647 return 0; 648 648 } -
protocols/oscar/oscar.c
rc2fb3809 r84b045d 267 267 if ((conn->type == AIM_CONN_TYPE_BOS) || 268 268 !(aim_getconn_type(odata->sess, AIM_CONN_TYPE_BOS))) { 269 imc _error(ic, _("Disconnected."));269 imcb_error(ic, _("Disconnected.")); 270 270 imc_logout(ic, TRUE); 271 271 } else if (conn->type == AIM_CONN_TYPE_CHAT) { … … 277 277 c->fd = -1; 278 278 aim_conn_kill(odata->sess, &conn); 279 imc _error(sess->aux_data, _("You have been disconnected from chat room %s."), c->name);279 imcb_error(sess->aux_data, _("You have been disconnected from chat room %s."), c->name); 280 280 } else if (conn->type == AIM_CONN_TYPE_CHATNAV) { 281 281 if (odata->cnpa > 0) … … 288 288 g_slist_remove(odata->create_rooms, cr); 289 289 g_free(cr); 290 imc _error(sess->aux_data, _("Chat is currently unavailable"));290 imcb_error(sess->aux_data, _("Chat is currently unavailable")); 291 291 } 292 292 aim_conn_kill(odata->sess, &conn); … … 325 325 326 326 if (source < 0) { 327 imc _error(ic, _("Couldn't connect to host"));327 imcb_error(ic, _("Couldn't connect to host")); 328 328 imc_logout(ic, TRUE); 329 329 return FALSE; … … 353 353 aim_session_t *sess; 354 354 aim_conn_t *conn; 355 struct im_connection *ic = imc _new(acc);355 struct im_connection *ic = imcb_new(acc); 356 356 struct oscar_data *odata = ic->proto_data = g_new0(struct oscar_data, 1); 357 357 … … 380 380 conn = aim_newconn(sess, AIM_CONN_TYPE_AUTH, NULL); 381 381 if (conn == NULL) { 382 imc _error(ic, _("Unable to login to AIM"));382 imcb_error(ic, _("Unable to login to AIM")); 383 383 imc_logout(ic, TRUE); 384 384 return; … … 386 386 387 387 if (acc->server == NULL) { 388 imc _error(ic, "No servername specified");388 imcb_error(ic, "No servername specified"); 389 389 imc_logout(ic, FALSE); 390 390 return; … … 393 393 if (g_strcasecmp(acc->server, "login.icq.com") != 0 && 394 394 g_strcasecmp(acc->server, "login.oscar.aol.com") != 0) { 395 imc _log(ic, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails.",acc->server);396 } 397 398 imc _log(ic, _("Signon: %s"), ic->acc->user);395 imcb_log(ic, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails.",acc->server); 396 } 397 398 imcb_log(ic, _("Signon: %s"), ic->acc->user); 399 399 400 400 aim_conn_addhandler(sess, conn, 0x0017, 0x0007, gaim_parse_login, 0); … … 404 404 conn->fd = proxy_connect(acc->server, AIM_LOGIN_PORT, oscar_login_connect, ic); 405 405 if (conn->fd < 0) { 406 imc _error(ic, _("Couldn't connect to host"));406 imcb_error(ic, _("Couldn't connect to host")); 407 407 imc_logout(ic, TRUE); 408 408 return; … … 464 464 465 465 if (source < 0) { 466 imc _error(ic, _("Could Not Connect"));466 imcb_error(ic, _("Could Not Connect")); 467 467 imc_logout(ic, TRUE); 468 468 return FALSE; … … 472 472 ic->inpa = b_input_add(bosconn->fd, GAIM_INPUT_READ, 473 473 oscar_callback, bosconn); 474 imc _log(ic, _("Connection established, cookie sent"));474 imcb_log(ic, _("Connection established, cookie sent")); 475 475 476 476 return FALSE; … … 495 495 case 0x05: 496 496 /* Incorrect nick/password */ 497 imc _error(ic, _("Incorrect nickname or password."));497 imcb_error(ic, _("Incorrect nickname or password.")); 498 498 // plugin_event(event_error, (void *)980, 0, 0, 0); 499 499 break; 500 500 case 0x11: 501 501 /* Suspended account */ 502 imc _error(ic, _("Your account is currently suspended."));502 imcb_error(ic, _("Your account is currently suspended.")); 503 503 break; 504 504 case 0x18: 505 505 /* connecting too frequently */ 506 imc _error(ic, _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer."));506 imcb_error(ic, _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer.")); 507 507 break; 508 508 case 0x1c: 509 509 /* client too old */ 510 imc _error(ic, _("The client version you are using is too old. Please upgrade at " WEBSITE));510 imcb_error(ic, _("The client version you are using is too old. Please upgrade at " WEBSITE)); 511 511 break; 512 512 default: 513 imc _error(ic, _("Authentication Failed"));513 imcb_error(ic, _("Authentication Failed")); 514 514 break; 515 515 } … … 523 523 bosconn = aim_newconn(sess, AIM_CONN_TYPE_BOS, NULL); 524 524 if (bosconn == NULL) { 525 imc _error(ic, _("Internal Error"));525 imcb_error(ic, _("Internal Error")); 526 526 od->killme = TRUE; 527 527 return 0; … … 569 569 g_free(host); 570 570 if (bosconn->fd < 0) { 571 imc _error(ic, _("Could Not Connect"));571 imcb_error(ic, _("Could Not Connect")); 572 572 od->killme = TRUE; 573 573 return 0; … … 607 607 } 608 608 if (in != '\n') { 609 imc _error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM."609 imcb_error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM." 610 610 " You may be disconnected shortly."); 611 611 b_event_remove(pos->inpa); … … 630 630 631 631 if (source < 0) { 632 imc _error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM."632 imcb_error(pos->ic, "Gaim was unable to get a valid hash for logging into AIM." 633 633 " You may be disconnected shortly."); 634 634 if (pos->modname) … … 708 708 g_free(pos->modname); 709 709 g_free(pos); 710 imc _error(sess->aux_data, "Gaim was unable to get a valid hash for logging into AIM."710 imcb_error(sess->aux_data, "Gaim was unable to get a valid hash for logging into AIM." 711 711 " You may be disconnected shortly."); 712 712 } … … 1112 1112 inv->name = g_strdup(name); 1113 1113 1114 do_ask_dialog( ic, txt, inv, oscar_accept_chat, oscar_reject_chat);1114 imcb_ask( ic, txt, inv, oscar_accept_chat, oscar_reject_chat); 1115 1115 1116 1116 if (name) … … 1130 1130 // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message); 1131 1131 if(find_buddy(data->ic, uin) == NULL) 1132 show_got_added(data->ic, uin, NULL);1132 imcb_ask_add(data->ic, uin, NULL); 1133 1133 1134 1134 g_free(uin); … … 1164 1164 data->ic = ic; 1165 1165 data->uin = uin; 1166 do_ask_dialog(ic, dialog_msg, data, gaim_icq_authgrant, gaim_icq_authdeny);1166 imcb_ask(ic, dialog_msg, data, gaim_icq_authgrant, gaim_icq_authdeny); 1167 1167 g_free(dialog_msg); 1168 1168 } … … 1207 1207 1208 1208 case 0x0007: { /* Someone has denied you authorization */ 1209 imc _log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") );1209 imcb_log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") ); 1210 1210 } break; 1211 1211 1212 1212 case 0x0008: { /* Someone has granted you authorization */ 1213 imc _log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") );1213 imcb_log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", args->uin, args->msg ? args->msg : _("No reason given.") ); 1214 1214 } break; 1215 1215 … … 1277 1277 case 0: 1278 1278 /* Invalid (0) */ 1279 imc _error(sess->aux_data,1279 imcb_error(sess->aux_data, 1280 1280 nummissed == 1 ? 1281 1281 _("You missed %d message from %s because it was invalid.") : … … 1286 1286 case 1: 1287 1287 /* Message too large */ 1288 imc _error(sess->aux_data,1288 imcb_error(sess->aux_data, 1289 1289 nummissed == 1 ? 1290 1290 _("You missed %d message from %s because it was too large.") : … … 1295 1295 case 2: 1296 1296 /* Rate exceeded */ 1297 imc _error(sess->aux_data,1297 imcb_error(sess->aux_data, 1298 1298 nummissed == 1 ? 1299 1299 _("You missed %d message from %s because the rate limit has been exceeded.") : … … 1304 1304 case 3: 1305 1305 /* Evil Sender */ 1306 imc _error(sess->aux_data,1306 imcb_error(sess->aux_data, 1307 1307 nummissed == 1 ? 1308 1308 _("You missed %d message from %s because it was too evil.") : … … 1313 1313 case 4: 1314 1314 /* Evil Receiver */ 1315 imc _error(sess->aux_data,1315 imcb_error(sess->aux_data, 1316 1316 nummissed == 1 ? 1317 1317 _("You missed %d message from %s because you are too evil.") : … … 1321 1321 break; 1322 1322 default: 1323 imc _error(sess->aux_data,1323 imcb_error(sess->aux_data, 1324 1324 nummissed == 1 ? 1325 1325 _("You missed %d message from %s for unknown reasons.") : … … 1341 1341 va_end(ap); 1342 1342 1343 imc _error(sess->aux_data, _("SNAC threw error: %s"),1343 imcb_error(sess->aux_data, _("SNAC threw error: %s"), 1344 1344 reason < msgerrreasonlen ? msgerrreason[reason] : "Unknown error"); 1345 1345 … … 1357 1357 va_end(ap); 1358 1358 1359 imc _error(sess->aux_data, _("Your message to %s did not get sent: %s"), destn,1359 imcb_error(sess->aux_data, _("Your message to %s did not get sent: %s"), destn, 1360 1360 (reason < msgerrreasonlen) ? msgerrreason[reason] : _("Reason unknown")); 1361 1361 … … 1373 1373 va_end(ap); 1374 1374 1375 imc _error(sess->aux_data, _("User information for %s unavailable: %s"), destn,1375 imcb_error(sess->aux_data, _("User information for %s unavailable: %s"), destn, 1376 1376 (reason < msgerrreasonlen) ? msgerrreason[reason] : _("Reason unknown")); 1377 1377 … … 1390 1390 1391 1391 if (id < 4) 1392 imc _error(sess->aux_data, _("Your connection may be lost."));1392 imcb_error(sess->aux_data, _("Your connection may be lost.")); 1393 1393 1394 1394 return 1; … … 1584 1584 aim_conn_setlatency(fr->conn, windowsize/4); 1585 1585 } else if (code == AIM_RATE_CODE_LIMIT) { 1586 imc _error(sess->aux_data, _("The last message was not sent because you are over the rate limit. "1586 imcb_error(sess->aux_data, _("The last message was not sent because you are over the rate limit. " 1587 1587 "Please wait 10 seconds and try again.")); 1588 1588 aim_conn_setlatency(fr->conn, windowsize/2); … … 1789 1789 1790 1790 case 0x0007: { /* Someone has denied you authorization */ 1791 imc _log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") );1791 imcb_log(sess->aux_data, "The user %u has denied your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") ); 1792 1792 } break; 1793 1793 1794 1794 case 0x0008: { /* Someone has granted you authorization */ 1795 imc _log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") );1795 imcb_log(sess->aux_data, "The user %u has granted your request to add them to your contact list for the following reason:\n%s", msg->sender, msg->msg ? msg->msg : _("No reason given.") ); 1796 1796 } break; 1797 1797 … … 1906 1906 1907 1907 if (od->rights.maxawaymsglen == 0) 1908 imc _error(ic, "oscar_set_away_aim called before locate rights received");1908 imcb_error(ic, "oscar_set_away_aim called before locate rights received"); 1909 1909 1910 1910 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL); … … 1920 1920 1921 1921 if (strlen(message) > od->rights.maxawaymsglen) { 1922 imc _error(ic, "Maximum away message length of %d bytes exceeded, truncating", od->rights.maxawaymsglen);1922 imcb_error(ic, "Maximum away message length of %d bytes exceeded, truncating", od->rights.maxawaymsglen); 1923 1923 } 1924 1924 … … 2084 2084 2085 2085 /* Now that we have a buddy list, we can tell BitlBee that we're online. */ 2086 imc _connected(ic);2086 imcb_connected(ic); 2087 2087 2088 2088 return 1; … … 2106 2106 { 2107 2107 /* Hmm, the length should be even... */ 2108 imc _error( sess->aux_data, "Received SSI ACK package with non-even length");2108 imcb_error( sess->aux_data, "Received SSI ACK package with non-even length"); 2109 2109 return( 0 ); 2110 2110 } … … 2117 2117 if( st == 0x0E ) 2118 2118 { 2119 imc _log( sess->aux_data, "Buddy %s can't be added without authorization, requesting authorization", list );2119 imcb_log( sess->aux_data, "Buddy %s can't be added without authorization, requesting authorization", list ); 2120 2120 2121 2121 aim_ssi_auth_request( sess, fr->conn, list, "" ); … … 2303 2303 } 2304 2304 2305 imc _log(ic, "%s\n%s", _("User Info"), str->str);2305 imcb_log(ic, "%s\n%s", _("User Info"), str->str); 2306 2306 g_string_free(str, TRUE); 2307 2307 … … 2397 2397 idletime.tm_sec = 0; 2398 2398 strftime(buff, 256, _("%d days %H hours %M minutes"), &idletime); 2399 imc _log(ic, "%s: %s", _("Idle Time"), buff);2399 imcb_log(ic, "%s: %s", _("Idle Time"), buff); 2400 2400 } 2401 2401 2402 2402 if(text) { 2403 2403 utf8 = oscar_encoding_to_utf8(extracted_encoding, text, text_length); 2404 imc _log(ic, "%s\n%s", _("User Info"), utf8);2404 imcb_log(ic, "%s\n%s", _("User Info"), utf8); 2405 2405 } else { 2406 imc _log(ic, _("No user info available."));2406 imcb_log(ic, _("No user info available.")); 2407 2407 } 2408 2408 } else if(infotype == AIM_GETINFO_AWAYMESSAGE && userinfo->flags & AIM_FLAG_AWAY) { 2409 2409 utf8 = oscar_encoding_to_utf8(extracted_encoding, text, text_length); 2410 imc _log(ic, "%s\n%s", _("Away Message"), utf8);2410 imcb_log(ic, "%s\n%s", _("Away Message"), utf8); 2411 2411 } 2412 2412 -
protocols/oscar/rxqueue.c
rc2fb3809 r84b045d 392 392 aim_bstream_rewind(&flaphdr); 393 393 start = aimbs_get8(&flaphdr); 394 imc _error(sess->aux_data, "FLAP framing disrupted");394 imcb_error(sess->aux_data, "FLAP framing disrupted"); 395 395 aim_conn_close(conn); 396 396 return -1; -
protocols/oscar/search.c
rc2fb3809 r84b045d 39 39 /* XXX the modules interface should have already retrieved this for us */ 40 40 if (!(snac2 = aim_remsnac(sess, snac->id))) { 41 imc _error(sess->aux_data, "couldn't get snac");41 imcb_error(sess->aux_data, "couldn't get snac"); 42 42 return 0; 43 43 } -
protocols/oscar/service.c
rc2fb3809 r84b045d 567 567 group = aimbs_get16(bs); 568 568 569 imc _error(sess->aux_data, "bifurcated migration unsupported");569 imcb_error(sess->aux_data, "bifurcated migration unsupported"); 570 570 } 571 571 … … 894 894 */ 895 895 } else 896 imc _error(sess->aux_data, "WARNING: unknown hash request");896 imcb_error(sess->aux_data, "WARNING: unknown hash request"); 897 897 898 898 } -
protocols/oscar/txqueue.c
rc2fb3809 r84b045d 30 30 31 31 if (!conn) { 32 imc _error(sess->aux_data, "no connection specified");32 imcb_error(sess->aux_data, "no connection specified"); 33 33 return NULL; 34 34 } … … 46 46 47 47 } else 48 imc _error(sess->aux_data, "unknown framing");48 imcb_error(sess->aux_data, "unknown framing"); 49 49 50 50 if (datalen > 0) { … … 80 80 81 81 if (!fr->conn) { 82 imc _error(sess->aux_data, "WARNING: enqueueing packet with no connection");82 imcb_error(sess->aux_data, "WARNING: enqueueing packet with no connection"); 83 83 fr->conn = aim_getconn_type(sess, AIM_CONN_TYPE_BOS); 84 84 } … … 120 120 121 121 if (!fr->conn) { 122 imc _error(sess->aux_data, "packet has no connection");122 imcb_error(sess->aux_data, "packet has no connection"); 123 123 aim_frame_destroy(fr); 124 124 return 0; -
protocols/yahoo/yahoo.c
rc2fb3809 r84b045d 123 123 static void byahoo_login( account_t *acc ) 124 124 { 125 struct im_connection *ic = imc _new( acc );125 struct im_connection *ic = imcb_new( acc ); 126 126 struct byahoo_data *yd = ic->proto_data = g_new0( struct byahoo_data, 1 ); 127 127 … … 129 129 yd->current_status = YAHOO_STATUS_AVAILABLE; 130 130 131 imc _log( ic, "Connecting" );131 imcb_log( ic, "Connecting" ); 132 132 yd->y2_id = yahoo_init( acc->user, acc->pass ); 133 133 yahoo_login( yd->y2_id, yd->current_status ); … … 163 163 { 164 164 /* Just make an URL and let the user fetch the info */ 165 imc _log(ic, "%s\n%s: %s%s", _("User Info"),165 imcb_log(ic, "%s\n%s: %s%s", _("User Info"), 166 166 _("For now, fetch yourself"), yahoo_get_profile_url(), 167 167 who); … … 510 510 if( succ == YAHOO_LOGIN_OK ) 511 511 { 512 imc _connected( ic );512 imcb_connected( ic ); 513 513 514 514 yd->logged_in = TRUE; … … 538 538 539 539 if( url && *url ) 540 imc _error( ic, "Error %d (%s). See %s for more information.", succ, errstr, url );540 imcb_error( ic, "Error %d (%s). See %s for more information.", succ, errstr, url ); 541 541 else 542 imc _error( ic, "Error %d (%s)", succ, errstr );542 imcb_error( ic, "Error %d (%s)", succ, errstr ); 543 543 544 544 imc_logout( ic, allow_reconnect ); … … 605 605 struct im_connection *ic = byahoo_get_ic_by_id( id ); 606 606 607 imc _log( ic, "Got a file transfer (file = %s) from %s. Ignoring for now due to lack of support.", fname, who );607 imcb_log( ic, "Got a file transfer (file = %s) from %s. Ignoring for now due to lack of support.", fname, who ); 608 608 } 609 609 … … 625 625 struct im_connection *ic = byahoo_get_ic_by_id( id ); 626 626 627 imc _log( ic, "Yahoo! system message: %s", msg );627 imcb_log( ic, "Yahoo! system message: %s", msg ); 628 628 } 629 629 … … 632 632 struct im_connection *ic = byahoo_get_ic_by_id( id ); 633 633 634 imc _log( ic, "Got a webcam invitation from %s. IRC+webcams is a no-no though...", from );634 imcb_log( ic, "Got a webcam invitation from %s. IRC+webcams is a no-no though...", from ); 635 635 } 636 636 … … 639 639 struct im_connection *ic = byahoo_get_ic_by_id( id ); 640 640 641 imc _error( ic, "%s", err );641 imcb_error( ic, "%s", err ); 642 642 643 643 if( fatal ) … … 803 803 g_snprintf( txt, 1024, "Got an invitation to chatroom %s from %s: %s", room, who, msg ); 804 804 805 do_ask_dialog( ic, txt, inv, byahoo_accept_conf, byahoo_reject_conf );805 imcb_ask( ic, txt, inv, byahoo_accept_conf, byahoo_reject_conf ); 806 806 } 807 807 … … 810 810 struct im_connection *ic = byahoo_get_ic_by_id( id ); 811 811 812 imc _log( ic, "Invite to chatroom %s rejected by %s: %s", room, who, msg );812 imcb_log( ic, "Invite to chatroom %s rejected by %s: %s", room, who, msg ); 813 813 } 814 814 … … 893 893 894 894 if( from && subj ) 895 imc _log( ic, "Received e-mail message from %s with subject `%s'", from, subj );895 imcb_log( ic, "Received e-mail message from %s with subject `%s'", from, subj ); 896 896 else if( cnt > 0 ) 897 imc _log( ic, "Received %d new e-mails", cnt );897 imcb_log( ic, "Received %d new e-mails", cnt ); 898 898 } 899 899 -
query.c
rc2fb3809 r84b045d 122 122 123 123 if( count > 0 ) 124 imc _log( ic, "Flushed %d unanswered question(s) for this connection.", count );124 imcb_log( ic, "Flushed %d unanswered question(s) for this connection.", count ); 125 125 126 126 q = query_default( irc ); … … 140 140 if( ans ) 141 141 { 142 imc _log( q->ic, "Accepted: %s", q->question );142 imcb_log( q->ic, "Accepted: %s", q->question ); 143 143 q->yes( NULL, q->data ); 144 144 } 145 145 else 146 146 { 147 imc _log( q->ic, "Rejected: %s", q->question );147 imcb_log( q->ic, "Rejected: %s", q->question ); 148 148 q->no( NULL, q->data ); 149 149 } … … 160 160 if( q->ic ) 161 161 { 162 imc _log( q->ic, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question );162 imcb_log( q->ic, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question ); 163 163 } 164 164 else -
root_commands.c
rc2fb3809 r84b045d 634 634 else 635 635 { 636 bim_rem_allow( ic, cmd[2] );637 bim_add_block( ic, cmd[2] );636 imc_rem_allow( ic, cmd[2] ); 637 imc_add_block( ic, cmd[2] ); 638 638 irc_usermsg( irc, "Buddy `%s' moved from your allow- to your block-list", cmd[2] ); 639 639 } … … 693 693 else 694 694 { 695 bim_rem_block( ic, cmd[2] );696 bim_add_allow( ic, cmd[2] );695 imc_rem_block( ic, cmd[2] ); 696 imc_add_allow( ic, cmd[2] ); 697 697 698 698 irc_usermsg( irc, "Buddy `%s' moved from your block- to your allow-list", cmd[2] );
Note: See TracChangeset
for help on using the changeset viewer.