Commit ea7f8549 authored by Kirk Bater's avatar Kirk Bater Committed by Sijis Aviles

Adds ability to go back to a previous room

parent 42b0ce51
......@@ -384,6 +384,8 @@ class TextBackend(ErrBot):
text_room = TextRoom(room[1:], self)
if text_room not in self._rooms:
self._rooms.insert(0, text_room)
self._rooms.insert(0, self._rooms.pop(self._rooms.index(text_room)))
return text_room
......@@ -50,7 +50,7 @@ class TextModeCmds(BotPlugin):
self._bot._inroom = True
if args:
room = args
if not room:
room = '#testroom'
return f'Joined Room {room}.'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment