diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-13 16:44:17 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-13 16:44:17 +0100 |
commit | e07cea09e884607d6ad005f5e2822251ca31b9ba (patch) | |
tree | afc3aee746bb36c28e59d5f7b0f6dd896824307f /lib/mauve/notifiers | |
parent | e140af144e987ff7f6d767f2dc48b9cf685803fd (diff) |
Further tweaks.
Diffstat (limited to 'lib/mauve/notifiers')
-rw-r--r-- | lib/mauve/notifiers/xmpp.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mauve/notifiers/xmpp.rb b/lib/mauve/notifiers/xmpp.rb index 8131096..34cc815 100644 --- a/lib/mauve/notifiers/xmpp.rb +++ b/lib/mauve/notifiers/xmpp.rb @@ -258,12 +258,12 @@ module Mauve # Joins a chat, and returns the stripped JID of the chat joined. # def join_muc(jid, password=nil) - if jid.is_a?(String) - jid = JID.new($1) if jid =~ /^muc:(.*)/ + if jid.is_a?(String) and jid =~ /^muc:(.*)/ + jid = JID.new($1) end unless jid.is_a?(JID) - logger.warn "I don't think #{jid} is a MUC" + logger.warn "#{jid} is not a MUC" return end @@ -271,7 +271,7 @@ module Mauve if !@mucs[jid.strip] - logger.info("Adding new MUC client for #{jid}") + logger.debug("Adding new MUC client for #{jid}") @mucs[jid.strip] = Jabber::MUC::MUCClient.new(@client) |