Mercurial > pidgin
diff src/buddy_chat.c @ 694:150214f1d48b
[gaim-migrate @ 704]
bah. oscar sucks a fat one.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 16 Aug 2000 01:53:59 +0000 |
| parents | f4026275bc9f |
| children | 0995382d0c46 |
line wrap: on
line diff
--- a/src/buddy_chat.c Wed Aug 16 01:10:22 2000 +0000 +++ b/src/buddy_chat.c Wed Aug 16 01:53:59 2000 +0000 @@ -60,6 +60,23 @@ } +struct conversation *find_chat(char *name) +{ + char cuser[64]; + struct conversation *c = NULL; + GList *cnv = buddy_chats; + + strcpy(cuser, normalize(name)); + + while (cnv) { + c = (struct conversation *)cnv->data; + if (!strcasecmp(cuser, normalize(c->name))) { + return c; + } + cnv = cnv->next; + } + return NULL; +} static void do_join_chat()
