[PackageInfo] Make sure to strip '>' off before splitting the nick from redirect, or redirect will fail

This commit is contained in:
Terence Simpson 2011-04-19 18:13:00 +01:00
parent 2a4663d09d
commit 507a7f0e0e

View File

@ -180,6 +180,8 @@ class PackageInfo(callbacks.Plugin):
pass pass
elif rest[0] == '>': elif rest[0] == '>':
try: try:
while rest[0] == '>':
rest = rest[1:].strip()
targets = [_ for _ in rest.split() if _] # Split and discard empty parts targets = [_ for _ in rest.split() if _] # Split and discard empty parts
target = stripNick(targets[0]) # Take the first "nick" and strip off bad chars target = stripNick(targets[0]) # Take the first "nick" and strip off bad chars
if target.lower() == "me": if target.lower() == "me":