diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-02-19 14:10:26 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-02-19 14:10:26 +0500 |
commit | 3b253992f156d8c91a1d9be6141349e032fa49bf (patch) | |
tree | 66c87968e02cac794af0d599a70ebd724e943226 | |
parent | ac2f11fb5fbbe8111ce741e4509a73a71442f400 (diff) | |
download | prosody-3b253992f156d8c91a1d9be6141349e032fa49bf.tar.gz prosody-3b253992f156d8c91a1d9be6141349e032fa49bf.zip |
MUC: Logging - logger doesn't like nils
-rw-r--r-- | plugins/mod_muc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua index 38e93a45..51a6c3b5 100644 --- a/plugins/mod_muc.lua +++ b/plugins/mod_muc.lua @@ -226,7 +226,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc local room = jid_bare(to); local current_nick = jid_nick:get(from, room); local type = stanza.attr.type; - log("debug", "room: %s, current_nick: %s, stanza: %s", room, current_nick, stanza:top_tag()); + log("debug", "room: %s, current_nick: %s, stanza: %s", room or "nil", current_nick or "nil", stanza:top_tag()); if stanza.name == "presence" then local pr = get_filtered_presence(stanza); pr.attr.from = to; |