Skip to content

Commit

Permalink
quit reason deco
Browse files Browse the repository at this point in the history
  • Loading branch information
sl4shme committed Oct 10, 2013
1 parent 2479a9f commit 8213c93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#sigdecoparcebatarddessh
#refaire key.py avec des boucle et wait pour windob
#autocompletion
#verifier le user qui lance sschat
#curses.flash / sur une window
#switch channel
#color
#review curses insert
#command url
#liste des nick
#timer notif
4 changes: 3 additions & 1 deletion sschat.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def cleanQuit(self, signum="", frame="", reason=""):
quit()
else:
if reason == "":
reason = "None"
reason = "Deco"
message= "/rem "+self.minion.pid+"|"+self.minion.nickname+"|"+reason
self.minion.sendMessage(message)
self.screen.stopScreen()
Expand Down Expand Up @@ -78,6 +78,8 @@ def command(self, mess):
self.minion.sendMessage("/get "+self.minion.pid)
elif cmd == "quit":
reason=' '.join(args)
if reason=="":
reason="None"
self.cleanQuit(0, 0, reason)
elif cmd == "timestamp":
if args[0] == "on":
Expand Down

0 comments on commit 8213c93

Please sign in to comment.