From 507a7f0e0e7298ca73fc4bf721980b8fcee43be5 Mon Sep 17 00:00:00 2001 From: Terence Simpson Date: Tue, 19 Apr 2011 18:13:00 +0100 Subject: [PATCH] [PackageInfo] Make sure to strip '>' off before splitting the nick from redirect, or redirect will fail --- PackageInfo/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PackageInfo/plugin.py b/PackageInfo/plugin.py index 94108d6..3527327 100644 --- a/PackageInfo/plugin.py +++ b/PackageInfo/plugin.py @@ -180,6 +180,8 @@ class PackageInfo(callbacks.Plugin): pass elif rest[0] == '>': try: + while rest[0] == '>': + rest = rest[1:].strip() targets = [_ for _ in rest.split() if _] # Split and discard empty parts target = stripNick(targets[0]) # Take the first "nick" and strip off bad chars if target.lower() == "me":