[gaim-migrate @ 1688]

Mon, 02 Apr 2001 07:15:06 +0000

author
Rob Flynn <gaim@robflynn.com>
date
Mon, 02 Apr 2001 07:15:06 +0000
changeset 1678
9004b7cd8715
parent 1677
7f76a3c6edc0
child 1679
52561cb7efce

[gaim-migrate @ 1688]
Add and Remove buttons work in IRC...

TODO file | annotate | diff | comparison | revisions
plugins/irc.c file | annotate | diff | comparison | revisions
--- 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;
 }

mercurial