Added /room subject command

This commit is contained in:
James Booth
2014-10-05 03:05:46 +01:00
parent 2026ab4b6e
commit 7584ddaa62
11 changed files with 114 additions and 18 deletions

View File

@@ -232,7 +232,11 @@ muc_set_subject(const char * const room, const char * const subject)
ChatRoom *chat_room = g_hash_table_lookup(rooms, room);
if (chat_room) {
free(chat_room->subject);
chat_room->subject = strdup(subject);
if (subject) {
chat_room->subject = strdup(subject);
} else {
chat_room->subject = NULL;
}
}
}