1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fixed error when not nick name change presence

This commit is contained in:
James Booth 2012-11-18 22:02:54 +00:00
parent 49676e3fae
commit 154c98ed65

View File

@ -250,11 +250,10 @@ room_complete_pending_nick_change(const char * const room,
muc_room *chat_room = g_hash_table_lookup(rooms, room); muc_room *chat_room = g_hash_table_lookup(rooms, room);
if (chat_room != NULL) { if (chat_room != NULL) {
char *old_nick = char *old_nick = g_hash_table_lookup(chat_room->nick_changes, nick);
strdup(g_hash_table_lookup(chat_room->nick_changes, nick));
if (old_nick != NULL) { if (old_nick != NULL) {
return old_nick; return strdup(old_nick);
} }
} }