Mercurial > pidgin.yaz
comparison src/protocols/qq/group_find.c @ 14055:44e1bf83dadf
[gaim-migrate @ 16668]
We have gaim_str_has_prefix() to use in place of g_str_has_prefix().
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 08 Aug 2006 00:25:19 +0000 |
parents | ef8490f9e823 |
children |
comparison
equal
deleted
inserted
replaced
14054:51f71ad82141 | 14055:44e1bf83dadf |
---|---|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 */ | 21 */ |
22 | 22 |
23 #include "conversation.h" | 23 #include "conversation.h" |
24 #include "debug.h" | 24 #include "debug.h" |
25 #include "util.h" | |
25 | 26 |
26 #include "group_find.h" | 27 #include "group_find.h" |
27 #include "group_network.h" | 28 #include "group_network.h" |
28 #include "qq.h" | 29 #include "qq.h" |
29 #include "utils.h" | 30 #include "utils.h" |
37 | 38 |
38 g_return_val_if_fail(gc != NULL && who != NULL, NULL); | 39 g_return_val_if_fail(gc != NULL && who != NULL, NULL); |
39 | 40 |
40 /* if it starts with QQ_NAME_PREFIX, we think it is valid name already | 41 /* if it starts with QQ_NAME_PREFIX, we think it is valid name already |
41 * otherwise we think it is nickname and try to find the matching gaim_name */ | 42 * otherwise we think it is nickname and try to find the matching gaim_name */ |
42 if (g_str_has_prefix(who, QQ_NAME_PREFIX) && gaim_name_to_uid(who) > 0) | 43 if (gaim_str_has_prefix(who, QQ_NAME_PREFIX) && gaim_name_to_uid(who) > 0) |
43 return (gchar *) who; | 44 return (gchar *) who; |
44 | 45 |
45 group = qq_group_find_by_channel(gc, channel); | 46 group = qq_group_find_by_channel(gc, channel); |
46 g_return_val_if_fail(group != NULL, NULL); | 47 g_return_val_if_fail(group != NULL, NULL); |
47 | 48 |