[irc] improve message

This commit is contained in:
HarHar 2013-01-24 19:46:29 -02:00
parent 5425652914
commit 6588d2a18d

View File

@ -93,6 +93,10 @@ class Bot(object):
if split[0].lower() == '!rooms': if split[0].lower() == '!rooms':
rooms = self.functions[1]() 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: ' out = 'Currently the Syncplay server hosts viewing sessions as follows: '
i = 0 i = 0
for room in rooms: for room in rooms: