summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui.py b/src/gui.py
index 82dd96a1..2e2a33e7 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -276,7 +276,7 @@ class Gui(object):
self.window.input.clear_text()
if line == "":
return
- if line.strip().startswith('/'):
+ if line.startswith('/'):
command = line.strip()[:].split()[0][1:]
args = line.strip()[:].split()[1:]
if command in self.commands.keys():
@@ -299,7 +299,8 @@ class Gui(object):
def information(self, msg):
room = self.get_room_by_name("Info")
info = room.add_info(msg)
- self.window.text_win.add_line(room, (datetime.now(), info))
+ if self.current_room() == room:
+ self.window.text_win.add_line(room, (datetime.now(), info))
def command_quit(self, args):
self.reset_curses()