Mercurial > pidgin
diff libpurple/server.c @ 25902:be3ba7e07de5
merge of '123d615deaa8daeeea7d7c341a87eab4e83a7958'
and 'e3b2ac4f2d9e6a6bc13c0394f980b28a75765258'
author | Kevin Stange <kevin@simguy.net> |
---|---|
date | Tue, 06 Jan 2009 07:53:19 +0000 |
parents | a6e3cb32cdd2 |
children | 584063555949 |
line wrap: on
line diff
--- a/libpurple/server.c Tue Jan 06 03:46:52 2009 +0000 +++ b/libpurple/server.c Tue Jan 06 07:53:19 2009 +0000 @@ -152,7 +152,7 @@ auto_reply_pref = purple_prefs_get_string("/purple/away/auto_reply"); if((gc->flags & PURPLE_CONNECTION_AUTO_RESP) && !purple_presence_is_available(presence) && - strcmp(auto_reply_pref, "never")) { + !purple_strequal(auto_reply_pref, "never")) { struct last_auto_response *lar; lar = get_last_auto_response(gc, name); @@ -253,17 +253,14 @@ buddies = g_slist_delete_link(buddies, buddies); server_alias = purple_buddy_get_server_alias(b); - if((server_alias == NULL && alias == NULL) || - (server_alias && alias && !strcmp(server_alias, alias))) - { + + if (purple_strequal(server_alias, alias)) continue; - } purple_blist_server_alias_buddy(b, alias); conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, purple_buddy_get_name(b), account); - if(conv != NULL && alias != NULL && - who != NULL && strcmp(alias, who)) + if (conv != NULL && alias != NULL && purple_strequal(alias, who)) { char *escaped = g_markup_escape_text(who, -1); char *escaped2 = g_markup_escape_text(alias, -1); @@ -298,7 +295,7 @@ buddies = g_slist_delete_link(buddies, buddies); balias = purple_buddy_get_local_buddy_alias(b); - if((!balias && !alias) || (balias && alias && !strcmp(balias, alias))) + if (purple_strequal(balias, alias)) continue; purple_blist_alias_buddy(b, alias); @@ -673,8 +670,8 @@ if ((primitive == PURPLE_STATUS_AVAILABLE) || (primitive == PURPLE_STATUS_INVISIBLE) || mobile || - !strcmp(auto_reply_pref, "never") || - (!purple_presence_is_idle(presence) && !strcmp(auto_reply_pref, "awayidle"))) + purple_strequal(auto_reply_pref, "never") || + (!purple_presence_is_idle(presence) && purple_strequal(auto_reply_pref, "awayidle"))) { g_free(name); return;