From 6588d2a18d67951f28fe566b59982bbd54c28048 Mon Sep 17 00:00:00 2001 From: HarHar Date: Thu, 24 Jan 2013 19:46:29 -0200 Subject: [PATCH] [irc] improve message --- syncplay/ircBot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncplay/ircBot.py b/syncplay/ircBot.py index a0ddd5d..1ba82c7 100644 --- a/syncplay/ircBot.py +++ b/syncplay/ircBot.py @@ -93,6 +93,10 @@ class Bot(object): if split[0].lower() == '!rooms': rooms = self.functions[1]() + if len(rooms) == 0: + self.msg(to, chr(3) + '5Error!' + chr(15) + ' No rooms found on server') + return + out = 'Currently the Syncplay server hosts viewing sessions as follows: ' i = 0 for room in rooms: