summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui.py b/src/gui.py
index 0df8be86..5f3b1323 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -35,8 +35,7 @@ import theme
import multiuserchat as muc
from handler import Handler
from config import config
-from tab import MucTab, InfoTab, PrivateTab
-from window import Window
+from tab import MucTab, InfoTab, PrivateTab, RosterInfoTab
from user import User
from room import Room
from message import Message
@@ -74,7 +73,9 @@ class Gui(object):
self.stdscr = curses.initscr()
self.init_curses(self.stdscr)
self.xmpp = xmpp
- self.tabs = [InfoTab(self.stdscr, "lol info")]
+ default_tab = InfoTab(self.stdscr, "Info") if self.xmpp.anon\
+ else RosterInfoTab(self.stdscr, "Roster")
+ self.tabs = [default_tab]
# a unique buffer used to store global informations
# that are displayed in almost all tabs, in an
# information window.