diff --git a/bugReport b/bugReport index c9a42b0..b8c5bc2 100644 --- a/bugReport +++ b/bugReport @@ -1,2 +1 @@ #ajouter un option pour autoriser les connections uniquement depuis TOR -#ne pas afficher les chat commencant par / car ceci est souvent une commande rate diff --git a/key/key.py b/key/key.py index 7dc4e17..1f9bc07 100755 --- a/key/key.py +++ b/key/key.py @@ -1,13 +1,20 @@ #!/usr/bin/python import os, re, signal -def cleanQuit(signum, frame): +def cleanQuit(signum="", frame=""): + Print "Bye !" quit() signal.signal(signal.SIGINT, cleanQuit) -print "This isn't even the pre-pre-alpha phase, please don't attack this server." + + + + + + +print "This is an alpha version, please don't attack this server." ok=False while ok == False : print "Paste your one-line ssh publikey (RSA 2048 bits or DSA):" @@ -46,4 +53,4 @@ def cleanQuit(signum, frame): print "Please remember that this service comes with NO FUCKING GUARANTEE" print "\nEnter to quit." raw_input() -quit() +cleanQuit() diff --git a/sschat.py b/sschat.py index 0705878..a89b55a 100755 --- a/sschat.py +++ b/sschat.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import minion, screen, signal, help, re, time, socket, threading, crypt +import minion, screen, signal, text, re, time, socket, threading, crypt class Sschat: def __init__(self, channel="", nickname=""): @@ -93,7 +93,7 @@ def command(self, mess): args = mess.split(" ")[1:] if cmd == "clear": self.screen.clearConvers() - elif cmd == "help": + elif cmd == "text.help": self.screen.scrollPrinter(help.help) elif cmd == "encrypt" and len(args) == 1: if args[0] == "on" and self.minion.encrypt == False: @@ -164,8 +164,6 @@ def command(self, mess): self.screen.history.clear() elif args[0] == "clear": self.screen.history.clear() - else: - self.screen.printMessage("/"+mess) chat=Sschat() while 1 : diff --git a/help.py b/text.py similarity index 100% rename from help.py rename to text.py