Przeglądaj źródła

nonetype notice

tBKwtWS 6 lat temu
rodzic
commit
3e1d3fdc13
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      rotbot/events/on_privnotice.py

+ 1 - 1
rotbot/events/on_privnotice.py

@@ -7,7 +7,7 @@ def process_event(self, connection, event):
     log.info(event) # Log to console.
 
     # Ignore server connect messages.
-    if source == None:
+    if event.source == None:
         return
 
     # Get and update resources.