comparison src/protocols/icq/gaim_icq.c @ 5136:381da05cb5ed

[gaim-migrate @ 5500] this started out as simply adding an option to right-click on a jabber buddy and re-request authorization. Then I ended up chasing the disgusting mess of const vs non-const parameters all over gaim. The end result is that you can now right-click on jabber buddies and re-request auth like you can for ICQ. Also, a lot more things are const that should be, I fixed a bug or two, and I cleaned up one of my least favorite functions in gaim (linkify_text). It is now decidedly less evil. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 15 Apr 2003 04:18:00 +0000
parents 0ed37c803503
children fefad67de2c7
comparison
equal deleted inserted replaced
5135:102135caa225 5136:381da05cb5ed
359 icq_Disconnect(id->link); 359 icq_Disconnect(id->link);
360 icq_ICQLINKDelete(id->link); 360 icq_ICQLINKDelete(id->link);
361 g_free(id); 361 g_free(id);
362 } 362 }
363 363
364 static int icq_send_msg(struct gaim_connection *gc, char *who, char *msg, int len, int flags) { 364 static int icq_send_msg(struct gaim_connection *gc, const char *who, const char *msg, int len, int flags) {
365 if (!(flags & IM_FLAG_AWAY) && (strlen(msg) > 0)) { 365 if (!(flags & IM_FLAG_AWAY) && (strlen(msg) > 0)) {
366 struct icq_data *id = (struct icq_data *)gc->proto_data; 366 struct icq_data *id = (struct icq_data *)gc->proto_data;
367 long w = atol(who); 367 long w = atol(who);
368 icq_SendMessage(id->link, w, msg, 368 icq_SendMessage(id->link, w, msg,
369 (flags & IM_FLAG_CHECKBOX) ? ICQ_SEND_THRUSERVER : ICQ_SEND_BESTWAY); 369 (flags & IM_FLAG_CHECKBOX) ? ICQ_SEND_THRUSERVER : ICQ_SEND_BESTWAY);
455 if (status & STATUS_INVISIBLE) 455 if (status & STATUS_INVISIBLE)
456 return NULL; 456 return NULL;
457 return icon_online_xpm; 457 return icon_online_xpm;
458 }*/ 458 }*/
459 459
460 static void icq_get_info(struct gaim_connection *gc, char *who) { 460 static void icq_get_info(struct gaim_connection *gc, const char *who) {
461 struct icq_data *id = (struct icq_data *)gc->proto_data; 461 struct icq_data *id = (struct icq_data *)gc->proto_data;
462 icq_SendInfoReq(id->link, atol(who)); 462 icq_SendInfoReq(id->link, atol(who));
463 } 463 }
464 464
465 static GList *icq_away_states(struct gaim_connection *gc) { 465 static GList *icq_away_states(struct gaim_connection *gc) {