aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-chatroom-manager.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-30 02:38:13 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-30 02:38:13 +0800
commit97d122d36a2e387ccdba9689052b0397bbe42a76 (patch)
tree11c26f3a385a00220ae289ab8d47b2ca7d5dd513 /libempathy/empathy-chatroom-manager.c
parenta5a46b1dc612eb29b86f4bdfa3b3d80cb35f8893 (diff)
downloadgsoc2013-empathy-97d122d36a2e387ccdba9689052b0397bbe42a76.tar.gz
gsoc2013-empathy-97d122d36a2e387ccdba9689052b0397bbe42a76.tar.zst
gsoc2013-empathy-97d122d36a2e387ccdba9689052b0397bbe42a76.zip
remove usage of empathy_account_equal
Diffstat (limited to 'libempathy/empathy-chatroom-manager.c')
-rw-r--r--libempathy/empathy-chatroom-manager.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 649dcc9cf..c5f9864a1 100644
--- a/libempathy/empathy-chatroom-manager.c
+++ b/libempathy/empathy-chatroom-manager.c
@@ -580,9 +580,8 @@ empathy_chatroom_manager_find (EmpathyChatroomManager *manager,
this_account = empathy_chatroom_get_account (chatroom);
this_room = empathy_chatroom_get_room (chatroom);
- if (this_account && this_room &&
- empathy_account_equal (account, this_account) &&
- strcmp (this_room, room) == 0) {
+ if (this_account && this_room && account == this_account
+ && strcmp (this_room, room) == 0) {
return chatroom;
}
}
@@ -611,8 +610,7 @@ empathy_chatroom_manager_get_chatrooms (EmpathyChatroomManager *manager,
chatroom = l->data;
- if (empathy_account_equal (account,
- empathy_chatroom_get_account (chatroom))) {
+ if (account == empathy_chatroom_get_account (chatroom)) {
chatrooms = g_list_append (chatrooms, chatroom);
}
}
@@ -641,8 +639,7 @@ empathy_chatroom_manager_get_count (EmpathyChatroomManager *manager,
chatroom = l->data;
- if (empathy_account_equal (account,
- empathy_chatroom_get_account (chatroom))) {
+ if (account == empathy_chatroom_get_account (chatroom)) {
count++;
}
}