Changeset df701918 for protocols/nogaim.c
- Timestamp:
- 2015-12-08T22:31:05Z (9 years ago)
- Parents:
- 459dec8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
r459dec8 rdf701918 479 479 } 480 480 481 /* Mainly meant for ICQ (and now also for Jabber conferences) to allow IM 482 modules to suggest a nickname for a handle. */ 483 void imcb_buddy_nick_hint(struct im_connection *ic, const char *handle, const char *nick) 481 /* Implements either imcb_buddy_nick_hint() or imcb_buddy_nick_change() depending on the value of 'change' */ 482 static void buddy_nick_hint_or_change(struct im_connection *ic, const char *handle, const char *nick, gboolean change) 484 483 { 485 484 bee_t *bee = ic->bee; … … 493 492 bu->nick = g_strdup(nick); 494 493 495 if (bee->ui->user_nick_hint) { 494 if (change && bee->ui->user_nick_change) { 495 bee->ui->user_nick_change(bee, bu, nick); 496 } else if (!change && bee->ui->user_nick_hint) { 496 497 bee->ui->user_nick_hint(bee, bu, nick); 497 498 } 498 499 } 499 500 501 /* Soft variant, for newly created users. Does nothing if it's already online */ 502 void imcb_buddy_nick_hint(struct im_connection *ic, const char *handle, const char *nick) 503 { 504 buddy_nick_hint_or_change(ic, handle, nick, FALSE); 505 } 506 507 /* Hard variant, always changes the nick */ 508 void imcb_buddy_nick_change(struct im_connection *ic, const char *handle, const char *nick) 509 { 510 buddy_nick_hint_or_change(ic, handle, nick, TRUE); 511 } 500 512 501 513 struct imcb_ask_cb_data {
Note: See TracChangeset
for help on using the changeset viewer.