Sfoglia il codice sorgente

Fake-implement _process_message() in IRCConnection.

tags/v0.1^2
Ben Kurtovic 12 anni fa
parent
commit
971773fc11
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      earwigbot/irc/connection.py

+ 4
- 0
earwigbot/irc/connection.py Vedi File

@@ -108,6 +108,10 @@ class IRCConnection(object):
if line[0] == "PING": # If we are pinged, pong back
self.pong(line[1][1:])

def _process_message(self, line):
"""To be overridden in subclasses."""
raise NotImplementedError()

@property
def host(self):
"""The hostname of the IRC server, like ``"irc.freenode.net"``."""


Caricamento…
Annulla
Salva