changeset 1396:8f9928839a36

Automatically unlock new rooms (suggested by Michael Weiser) The user cannot configure a newly created room at the moment, so let's unlock the room automatically.
author Mikael Berthe <mikael@lilotux.net>
date Mon, 10 Dec 2007 22:04:14 +0100
parents d431cd75eb53
children 5f91bac887ee
files mcabber/src/jabglue.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Mon Dec 10 21:45:24 2007 +0100
+++ b/mcabber/src/jabglue.c	Mon Dec 10 22:04:14 2007 +0100
@@ -2207,6 +2207,10 @@
       printstatus = status_default;
   }
 
+  // A new room has been created; accept MUC default config
+  if (statuscode == 201)
+    jb_room_unlock(roomjid);
+
   // Check for nickname change
   if (statuscode == 303 && mbnick) {
     mbuf = g_strdup_printf("%s is now known as %s", rname, mbnick);