# HG changeset patch # User Rob Flynn # Date 986195706 0 # Node ID 1573a65fd0cd6b288431d13a20ec3889421c5dfb # Parent 27e5acfe2ed5ec01e2e0f883c9cceb73d6e154cf [gaim-migrate @ 1688] Add and Remove buttons work in IRC... committer: Tailor Script diff -r 27e5acfe2ed5 -r 1573a65fd0cd 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 27e5acfe2ed5 -r 1573a65fd0cd 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; }