Explorar o código

removed bachir from auto hello

Bachir Soussi Chiadmi %!s(int64=6) %!d(string=hai) anos
pai
achega
1a81730af6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cedbot_muc.py

+ 1 - 1
cedbot_muc.py

@@ -161,7 +161,7 @@ class MUCBot(sleekxmpp.ClientXMPP):
                         documentation for the Presence stanza
                         to see how else it may be used.
         """
-        if presence['muc']['nick'] != self.nick:
+        if presence['muc']['nick'] != self.nick and presence['muc']['nick'] != 'bachir':
             f = presence['from'].bare
             print('------ from : %s' % f)
             self.send_msg(f, 'Salut {0}'.format(presence['muc']['nick']))