diff options
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r-- | src/multiuserchat.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py index be4d2277..b5e4a02e 100644 --- a/src/multiuserchat.py +++ b/src/multiuserchat.py @@ -23,8 +23,7 @@ import xmpp import common import threading -from time import (altzone, daylight, gmtime, localtime, mktime, strftime, - time as time_time, timezone, tzname) +from time import (altzone, gmtime, localtime, strftime, timezone) from handler import Handler from config import config @@ -99,8 +98,6 @@ class VcardSender(threading.Thread): iq3.addChild(k).setData(j[k]) else: iq2.addChild(i).setData(vcard[i]) - # id_ = self.connect.getAnId() - # iq.setID(id_) self.connection.send(iq) iq = xmpp.Iq(typ = 'set') iq2 = iq.setTag(xmpp.NS_VCARD_UPDATE) @@ -150,7 +147,6 @@ class MultiUserChat(object): self.connection.send(mes) def send_private_message(self, user_jid, message): - from common import debug mes = Message(to=user_jid) mes.setBody(message) mes.setType('chat') @@ -217,8 +213,6 @@ class MultiUserChat(object): code=code, msg=msg) - - def on_presence(self, presence): """Receive a MUC presence notification""" from_ = presence.getFrom().__str__() |