# HG changeset patch # User Rob Flynn # Date 986195706 0 # Node ID 9004b7cd8715359bf71605f983522139ad57fed4 # Parent 7f76a3c6edc0edaca2976fbd56780c3f4653c7a9 [gaim-migrate @ 1688] Add and Remove buttons work in IRC... diff -r 7f76a3c6edc0 -r 9004b7cd8715 TODO --- a/TODO Mon Apr 02 06:48:27 2001 +0000 +++ b/TODO Mon Apr 02 07:15:06 2001 +0000 @@ -48,4 +48,6 @@ normalized). Then finding buddies (in your buddy list and such) should work based off of that. Adding buddies similarly, you get the real name before you complete the adding process. Returning NULL will be for an - invalid name (such as a non-numeric name in ICQ). + invalid name (such as a non-numeric name in ICQ). It will also be handy + in IRC for removing the @ and + from the front of ops and those with +V + status. diff -r 7f76a3c6edc0 -r 9004b7cd8715 plugins/irc.c --- a/plugins/irc.c Mon Apr 02 06:48:27 2001 +0000 +++ b/plugins/irc.c Mon Apr 02 07:15:06 2001 +0000 @@ -1279,6 +1279,15 @@ write(idata->fd, buf, strlen(buf)); } +static void irc_fake_buddy(struct gaim_connection *gc, char *who) +{ + /* Heh, there is no buddy list. We fake it. + * I just need this here so the add and remove buttons will + * show up */ +} + + + static struct prpl *my_protocol = NULL; static void irc_init(struct prpl *ret) @@ -1296,6 +1305,8 @@ ret->chat_send = irc_chat_send; ret->get_info = irc_get_info; ret->set_away = irc_set_away; + ret->add_buddy = irc_fake_buddy; + ret->remove_buddy = irc_fake_buddy; my_protocol = ret; }