libpurple/protocols/gg/gg-utils.c

branch
string-comparison-r2
changeset 38259
c593fc9f5438
parent 20289
5c844288fbec
equal deleted inserted replaced
38258:9a6551eba09c 38259:c593fc9f5438
127 msg = purple_status_get_attr_string(status, "message"); 127 msg = purple_status_get_attr_string(status, "message");
128 if (msg && !*msg) 128 if (msg && !*msg)
129 msg = NULL; 129 msg = NULL;
130 130
131 status_id = purple_status_get_id(status); 131 status_id = purple_status_get_id(status);
132 if (strcmp(status_id, "invisible") == 0) { 132 if (purple_strequal(status_id, "invisible")) {
133 status_id = "offline"; 133 status_id = "offline";
134 } 134 }
135 135
136 if (msg) { 136 if (msg) {
137 if (strlen(msg) > GG_STATUS_DESCR_MAXSIZE) { 137 if (strlen(msg) > GG_STATUS_DESCR_MAXSIZE) {

mercurial