X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;f=rogue_chat_curses.py;h=2dfbdd1b6b76772877ac47b9db7c04b4e199e919;hb=ee3263e4b0bbc9146040c58bb3ed9bb1653102c1;hp=0644a4ccc439ebda77eacce232162748a7aeabac;hpb=6a70ba4e9d6e3ff89b2cdd40ef65e600e6ed6548;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 0644a4c..2dfbdd1 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -138,6 +138,7 @@ def cmd_PORTAL(game, position, msg): cmd_PORTAL.argtypes = 'yx_tuple:nonneg string' def cmd_PLAY_ERROR(game, msg): + game.tui.log_msg('? ' + msg) game.tui.flash() game.tui.do_refresh = True cmd_PLAY_ERROR.argtypes = 'string' @@ -689,13 +690,6 @@ class TUI: self.send('NICK ' + quote(tokens[1])) else: self.log_msg('? need login name') - #elif self.input_.startswith('/msg'): - # tokens = self.input_.split(maxsplit=2) - # if len(tokens) == 3: - # self.send('QUERY %s %s' % (quote(tokens[1]), - # quote(tokens[2]))) - # else: - # self.log_msg('? need message target and message') else: self.log_msg('? unknown command') else: @@ -762,4 +756,5 @@ class TUI: self.send('TASK:WRITE %s %s' % (key, quote(self.password))) self.switch_mode('play') -TUI('localhost:5000') +#TUI('localhost:5000') +TUI('wss://plomlompom.com/rogue_chat/')