瀏覽代碼

bugfix!

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
3fa5d0a178
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      bot/frontend.py

+ 4
- 2
bot/frontend.py 查看文件

@@ -54,7 +54,9 @@ def main():
lines = read_buffer.split("\n")
read_buffer = lines.pop()
for line in lines:
_process_message(line)
ret = _process_message(line)
if ret:
return

def _process_message(line):
"""Process a single message from IRC."""
@@ -89,7 +91,7 @@ def _process_message(line):
if data.msg in ["!restart", ".restart"]:
if data.host in config.irc["permissions"]["owners"]:
print "Restarting bot per owner request..."
return
return True

# If we are pinged, pong back:
elif line[0] == "PING":


Loading…
取消
儲存