about summary refs log tree commit diff stats
path: root/src/room_chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/room_chat.c')
-rw-r--r--src/room_chat.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/room_chat.c b/src/room_chat.c
index 8e843f9a..cdadc529 100644
--- a/src/room_chat.c
+++ b/src/room_chat.c
@@ -57,6 +57,17 @@ room_join(const char * const room, const char * const nick)
 }
 
 void
+room_change_nick(const char * const room, const char * const nick)
+{
+    muc_room *chat_room = g_hash_table_lookup(rooms, room);
+
+    if (chat_room != NULL) {
+        free(chat_room->nick);
+        chat_room->nick = strdup(nick);
+    }
+}
+
+void
 room_leave(const char * const room)
 {
     g_hash_table_remove(rooms, room);
95 96 97 98 99 100