Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 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 |
comparison
equal
deleted
inserted
replaced
1395:d431cd75eb53 | 1396:8f9928839a36 |
---|---|
2204 if (printstatus == status_default) { | 2204 if (printstatus == status_default) { |
2205 printstatus = (guint) settings_opt_get_int("muc_print_status"); | 2205 printstatus = (guint) settings_opt_get_int("muc_print_status"); |
2206 if (printstatus > 3) | 2206 if (printstatus > 3) |
2207 printstatus = status_default; | 2207 printstatus = status_default; |
2208 } | 2208 } |
2209 | |
2210 // A new room has been created; accept MUC default config | |
2211 if (statuscode == 201) | |
2212 jb_room_unlock(roomjid); | |
2209 | 2213 |
2210 // Check for nickname change | 2214 // Check for nickname change |
2211 if (statuscode == 303 && mbnick) { | 2215 if (statuscode == 303 && mbnick) { |
2212 mbuf = g_strdup_printf("%s is now known as %s", rname, mbnick); | 2216 mbuf = g_strdup_printf("%s is now known as %s", rname, mbnick); |
2213 scr_WriteIncomingMessage(roomjid, mbuf, usttime, | 2217 scr_WriteIncomingMessage(roomjid, mbuf, usttime, |