From 5161a9d4e87656eaed2ef377b431dfefb4238fa5 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 2 Jul 2010 15:19:54 +0200 Subject: [PATCH] Show some more room options in the log file --- src/mod_muc/mod_muc_log.erl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/mod_muc/mod_muc_log.erl b/src/mod_muc/mod_muc_log.erl index e59ea8eb4..a3211ab87 100644 --- a/src/mod_muc/mod_muc_log.erl +++ b/src/mod_muc/mod_muc_log.erl @@ -874,7 +874,9 @@ roomconfig_to_string(Options, Lang, FileFormat) -> T -> case Opt of password -> "
" ++ OptText ++ "
"; - title -> "
" ++ ?T("Room title") ++ ": \"" ++ htmlize(T, FileFormat) ++ "\"
"; + max_users -> "
" ++ OptText ++ ": \"" ++ htmlize(integer_to_list(T), FileFormat) ++ "\"
"; + title -> "
" ++ OptText ++ ": \"" ++ htmlize(T, FileFormat) ++ "\"
"; + description -> "
" ++ OptText ++ ": \"" ++ htmlize(T, FileFormat) ++ "\"
"; _ -> "\"" ++ T ++ "\"" end end, @@ -890,7 +892,7 @@ get_roomconfig_text(public) -> "Make room public searchable"; get_roomconfig_text(public_list) -> "Make participants list public"; get_roomconfig_text(password_protected) -> "Make room password protected"; get_roomconfig_text(password) -> "Password"; -get_roomconfig_text(anonymous) -> "Make room semianonymous"; +get_roomconfig_text(anonymous) -> "This room is not anonymous"; get_roomconfig_text(members_only) -> "Make room members-only"; get_roomconfig_text(moderated) -> "Make room moderated"; get_roomconfig_text(members_by_default) -> "Default users as participants"; @@ -899,6 +901,13 @@ get_roomconfig_text(allow_private_messages) -> "Allow users to send private mess get_roomconfig_text(allow_query_users) -> "Allow users to query other users"; get_roomconfig_text(allow_user_invites) -> "Allow users to send invites"; get_roomconfig_text(logging) -> "Enable logging"; +get_roomconfig_text(allow_visitor_nickchange) -> "Allow visitors to change nickname"; +get_roomconfig_text(allow_visitor_status) -> "Allow visitors to send status text in presence updates"; +get_roomconfig_text(captcha_protected) -> "Make room captcha protected"; +get_roomconfig_text(description) -> "Room description"; +%% get_roomconfig_text(subject) -> "Subject"; +%% get_roomconfig_text(subject_author) -> "Subject author"; +get_roomconfig_text(max_users) -> "Maximum Number of Occupants"; get_roomconfig_text(_) -> undefined. %% Users = [{JID, Nick, Role}]