'Process incoming message stanzas from any chat room. Be aware
that if you also have any handlers for the \'message\' event,
message stanzas may be processed by both handlers, so check
the \'type\' attribute when using a \'message\' event handler.
Whenever the bot\'s nickname is mentioned, respond to
the message.
IMPORTANT: Always check that a message is not from yourself,
otherwise you will create an infinite loop responding
to your own messages.
This handler will reply to messages that mention
the bot\'s nickname.
Arguments:
msg -- The received message stanza. See the documentation
for stanza objects and the Message stanza to see
how it may be used.'

def muc_message(self, msg):

    if ((msg['mucnick'] != self.nick) and (self.nick in msg['body'])):
        self.send_message(mto=msg['from'].bare, mbody=('I    heard    that,    %s.' % msg['mucnick']), mtype='groupchat')
