Mercurial > pidgin.yaz
changeset 1678:1573a65fd0cd
[gaim-migrate @ 1688]
Add and Remove buttons work in IRC...
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 02 Apr 2001 07:15:06 +0000 |
parents | 27e5acfe2ed5 |
children | d027f4c7d829 |
files | TODO plugins/irc.c |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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; }