fixed .quit in irc

This commit is contained in:
neersighted 2012-03-01 10:39:51 -08:00
parent b7dd069d82
commit 42b4d4951a
2 changed files with 10 additions and 0 deletions

9
lib/stop.py Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env python
# Tiny little stoper by neersighted
import sys
import os
import subprocess
stop = "./cloudbot stop"
subprocess.call(stop, shell=True)
sys.exit()

View File

@ -19,6 +19,7 @@ def quit(inp, input=None, db=None, notice=None):
else:
input.conn.send("QUIT :Killed by " + input.nick + " (no reason)")
time.sleep(3)
subprocess.call(['lib/stop.py'])
sys.exit()