]> granicus.if.org Git - ejabberd/commitdiff
Support for: Room option to ignore private messages from visitors
authorBadlop <badlop@process-one.net>
Tue, 19 Jul 2011 19:19:55 +0000 (21:19 +0200)
committerBadlop <badlop@process-one.net>
Tue, 19 Jul 2011 20:14:58 +0000 (22:14 +0200)
src/mod_muc/mod_muc_log.erl

index a6650186d6ff0dcaade1b0839ef48bf3ac6d6e58..1bddae8c36a79b62f2074a7e7420ccadf6ebf48e 100644 (file)
@@ -877,6 +877,7 @@ roomconfig_to_string(Options, Lang, FileFormat) ->
                                       max_users -> "<div class=\"rcot\">" ++ OptText ++ ": \"" ++ htmlize(integer_to_list(T), FileFormat) ++ "\"</div>";
                                       title -> "<div class=\"rcot\">" ++ OptText ++ ": \"" ++ htmlize(T, FileFormat) ++ "\"</div>";
                                       description -> "<div class=\"rcot\">" ++ OptText ++ ": \"" ++ htmlize(T, FileFormat) ++ "\"</div>";
+                                      allow_private_messages_from_visitors -> "<div class=\"rcot\">" ++ OptText ++ ": \"" ++ htmlize(atom_to_list(T), FileFormat) ++ "\"</div>";
                                       _ -> "\"" ++ T ++ "\""
                                   end
                           end,