浏览代码

Fake-implement _process_message() in IRCConnection.

tags/v0.1^2
Ben Kurtovic 12 年前
父节点
当前提交
971773fc11
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      earwigbot/irc/connection.py

+ 4
- 0
earwigbot/irc/connection.py 查看文件

@@ -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"``."""


正在加载...
取消
保存