Commits

Jason R. Coombs committed cce166f

Fix NameError due to removed global

Comments (0)

Files changed (1)

 except ImportError:
     pass
 
+from . import connection
+from . import events
 from . import functools as irc_functools
+from . import strings
 from . import util
-from . import strings
-from . import connection
 
 log = logging.getLogger(__name__)
 
         return self.real_nickname
 
     def process_data(self):
-        """[Internal]"""
+        "read and process input from self.socket"
 
         try:
             reader = getattr(self.socket, 'read', self.socket.recv)
                     arguments.append(a[1])
 
             # Translate numerics into more readable strings.
-            if command in numeric_events:
-                command = numeric_events[command]
+            command = events.numeric.get(command, command)
 
             if command == "nick":
                 if NickMask(prefix).nick == self.real_nickname: