tBKwtWS 6 år sedan
förälder
incheckning
80dfe7768b
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 1
      rotbot/events/on_privnotice.py
  2. 1 0
      rotbot/events/on_welcome.py

+ 1 - 1
rotbot/events/on_privnotice.py

@@ -72,7 +72,7 @@ def process_event(self, connection, event):
         #     return
     if event.source.nick != "Global":
         Inform.notice_owners(self, connection, 'Notice from %s%s%s: %s%s' % (font.red, event.source.nick, font.grey, font.reset, event.arguments[0]))
-    if event.arguments[0] == '*** Looking up your hostname...' or event.arguments[0] == '*** Found your hostname' or event.arguments[0].startswith('*** Connected securely via ') or event.arguments[0] == '*** Your host is masked (':
+    if event.arguments[0] == '*** Looking up your hostname...' or event.arguments[0] == '*** Found your hostname' or event.arguments[0].startswith('*** Connected securely via ') or event.arguments[0] == '*** Your host is masked (' or event.arguments[0] == 'You are connected to ' or event.arguments[0] == 'Highest connection count: ':
         return  # Do not forward these messages.
 
 async def register_later(self, connection, seconds):

+ 1 - 0
rotbot/events/on_welcome.py

@@ -10,6 +10,7 @@ def process_event(self, connection, event):
         if self.network.password:   # Password saved.
             connection.privmsg("NickServ", "identify " + self.network.password) # Identify with NickServ.
     if network_services == 'x': # X bot.
+        print(self.xbot = 'x@xhannels.%s' % '.'.join(event.source.split('.')[-2:]))
         self.xbot = 'x@xhannels.%s' % '.'.join(event.source.split('.')[-2:])
         if self.network.password:   # Password saved.
             connection.privmsg(self.xbot, 'LOGIN %s %s' % (self.network.nickname, self.network.password))   # Identify with X.