diff options
Diffstat (limited to 'protocols/bee_chat.c')
-rw-r--r-- | protocols/bee_chat.c | 15 |
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; +} |