aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/bee_chat.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-08 15:48:38 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-08 15:48:38 +0100
commiteaaa9862451175392d6df48c4795b188518bed4b (patch)
treebaf01847709f54d56fc009b261484120e90e5be4 /protocols/bee_chat.c
parent4a9fd5f7a980831ee2c96a728f4f83137cfc73fe (diff)
Misc. cleanup. Also updated the Yahoo! module to deal with struct groupchat
in a GSList so that a default config fully compiles again.
Diffstat (limited to 'protocols/bee_chat.c')
-rw-r--r--protocols/bee_chat.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/bee_chat.c b/protocols/bee_chat.c
index e565b616..3e17a42f 100644
--- a/protocols/bee_chat.c
+++ b/protocols/bee_chat.c
@@ -217,3 +217,18 @@ int bee_chat_msg( bee_t *bee, struct groupchat *c, const char *msg, int flags )
return 1;
}
+
+struct groupchat *bee_chat_by_title( bee_t *bee, struct im_connection *ic, const char *title )
+{
+ struct groupchat *c;
+ GSList *l;
+
+ for( l = ic->groupchats; l; l = l->next )
+ {
+ c = l->data;
+ if( strcmp( c->title, title ) == 0 )
+ return c;
+ }
+
+ return NULL;
+}