home · contact · privacy
Fix arg order for passwords.
[plomrogue2] / rogue_chat_curses.py
index 7ff74464f0a73a1e58396353b6a9883dae590de7..b09dcc7e6548a3a1cd712684965b50f39dc5a5f2 100755 (executable)
@@ -636,15 +636,15 @@ class TUI:
             elif self.mode == self.mode_annotate and key == '\n':
                 if self.input_ == '':
                     self.input_ = ' '
-                self.send('ANNOTATE %s %s %s' % (quote(self.password),
-                                                 self.explorer, quote(self.input_)))
+                self.send('ANNOTATE %s %s %s' % (self.explorer, quote(self.input_),
+                                                 quote(self.password))
                 self.input_ = ""
                 self.switch_mode('study', keep_position=True)
             elif self.mode == self.mode_portal and key == '\n':
                 if self.input_ == '':
                     self.input_ = ' '
-                self.send('PORTAL %s %s %s' % (quote(self.password),
-                                               self.explorer, quote(self.input_)))
+                self.send('PORTAL %s %s %s' % (self.explorer, quote(self.input_),
+                                               quote(self.password)))
                 self.input_ = ""
                 self.switch_mode('study', keep_position=True)
             elif self.mode == self.mode_teleport and key == '\n':