mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
drivers: Don't strip all whitespaces before parsing messages.
They matter in multiline messages, and there isn't much point to stripping them anyway.
This commit is contained in:
parent
7cb3ae12da
commit
92399bb6a7
@ -240,7 +240,10 @@ def newDriver(irc, moduleName=None):
|
||||
return driver
|
||||
|
||||
def parseMsg(s):
|
||||
s = s.strip()
|
||||
# It may be tempting to strip all whitespaces here, but it's important
|
||||
# to preserve them, because they matter for multiline messages.
|
||||
# https://ircv3.net/specs/extensions/multiline
|
||||
s = s.strip('\r\n')
|
||||
if s:
|
||||
msg = ircmsgs.IrcMsg(s)
|
||||
return msg
|
||||
|
Loading…
Reference in New Issue
Block a user