[irc] handle room name with spaces
This commit is contained in:
parent
fbdbf624e8
commit
7be8c23cd6
@ -117,7 +117,10 @@ class Bot(object):
|
|||||||
elif split[0].lower() == '!roominfo':
|
elif split[0].lower() == '!roominfo':
|
||||||
if len(split) >= 2:
|
if len(split) >= 2:
|
||||||
rooms = self.functions[1]()
|
rooms = self.functions[1]()
|
||||||
for room in split[1:]:
|
room = ''
|
||||||
|
for r in split[1:]:
|
||||||
|
room += r + ' '
|
||||||
|
room = room[:-1]
|
||||||
if (room in rooms) == False:
|
if (room in rooms) == False:
|
||||||
self.msg(to, chr(3) + '5Error!' + chr(15) + ' Room does not exists (' + room + ')')
|
self.msg(to, chr(3) + '5Error!' + chr(15) + ' Room does not exists (' + room + ')')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user