aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/nogaim.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-06-14 00:31:39 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2007-06-14 00:31:39 +0100
commit998b1035a6c8349b3661861eeb5d9d1f4082ba0a (patch)
tree2d7391d972f76b9baf539ceeae872efacecaee7b /protocols/nogaim.c
parent43d8cc5909aa45aee0b3368e70275469b0f8de22 (diff)
Added imcb_remove_buddy() so deletions in Jabber roster pushes actually
work. This also solves the issue of underscores appearing and disappearing in their nicknames when people leave/join a chat.
Diffstat (limited to 'protocols/nogaim.c')
-rw-r--r--protocols/nogaim.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c
index a1a97dc3..4f04993c 100644
--- a/protocols/nogaim.c
+++ b/protocols/nogaim.c
@@ -441,6 +441,14 @@ void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname )
}
}
+void imcb_remove_buddy( struct im_connection *ic, char *handle, char *group )
+{
+ user_t *u;
+
+ if( ( u = user_findhandle( ic, handle ) ) )
+ user_del( ic->irc, u->nick );
+}
+
/* Mainly meant for ICQ (and now also for Jabber conferences) to allow IM
modules to suggest a nickname for a handle. */
void imcb_buddy_nick_hint( struct im_connection *ic, char *handle, char *nick )