From 3c8c6f202700a9815cf21b72265ec69467cdc347 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 15 Apr 2016 11:41:49 -0700 Subject: [PATCH] nefarious: fix syntax in BURST mode handling --- protocols/nefarious.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protocols/nefarious.py b/protocols/nefarious.py index 71e412f..b735bb3 100644 --- a/protocols/nefarious.py +++ b/protocols/nefarious.py @@ -474,8 +474,9 @@ class P10Protocol(Protocol): userlist = args[-1].split(',') - # Then, we can make the modestring just encompass all the text until the end of the long. - modestring = args[2:-1] or args[2] + # Then, we can make the modestring just encompass all the text until the end of the string. + # If no modes are given, this will simply be empty. + modestring = args[2:-1] parsedmodes = utils.parseModes(self.irc, channel, modestring) # Add the ban list to the list of modes to process.