pidgin.2.5.6: 3189e44c: We don't have purple_strequal yet in the...

sadrul at pidgin.im sadrul at pidgin.im
Wed Apr 29 14:36:33 EDT 2009


-----------------------------------------------------------------
Revision: 3189e44c8a121eb559f15de96c0ff5fb5ab3bffb
Ancestor: 895b62bf62773603ba15e694316a3ef48c312187
Author: sadrul at pidgin.im
Date: 2009-04-29T18:33:39
Branch: im.pidgin.pidgin.2.5.6
URL: http://d.pidgin.im/viewmtn/revision/info/3189e44c8a121eb559f15de96c0ff5fb5ab3bffb

Modified files:
        libpurple/conversation.c libpurple/server.c

ChangeLog: 

We don't have purple_strequal yet in the past.

-------------- next part --------------
============================================================
--- libpurple/conversation.c	37b1bf080cdcf55182ef8a6c2fa193a7c9c21f50
+++ libpurple/conversation.c	e43e803ecaeb0bec9765da0d632b01679a06ff35
@@ -1481,7 +1481,7 @@ purple_conv_chat_write(PurpleConvChat *c
 
 		str = purple_normalize(account, who);
 
-		if (purple_strequal(str, chat->nick)) {
+		if (!strcmp(str, chat->nick)) {
 			flags |= PURPLE_MESSAGE_SEND;
 		} else {
 			flags |= PURPLE_MESSAGE_RECV;
============================================================
--- libpurple/server.c	d919c981289873aeaa9478fd08465462d3cfaee2
+++ libpurple/server.c	f94f7a11f8822c8ba787ae07b089f7aeec50bc19
@@ -936,7 +936,7 @@ void serv_got_chat_in(PurpleConnection *
 		return;
 
 	/* Did I send the message? */
-	if (purple_strequal(purple_conv_chat_get_nick(chat),
+	if (!strcmp(purple_conv_chat_get_nick(chat),
 				purple_normalize(purple_conversation_get_account(conv), who))) {
 		flags |= PURPLE_MESSAGE_SEND;
 		flags &= ~PURPLE_MESSAGE_RECV; /* Just in case some prpl sets it! */


More information about the Commits mailing list