mirror of
https://github.com/znc/znc.git
synced 2026-08-11 03:12:50 +02:00
Fix CModeMessage::GetModes()
Thanks to KindOne for finding the bug. CModeMessage::GetModes() must trim the colon that CMessage::GetParams() may include.
This commit is contained in:
@@ -144,7 +144,7 @@ public:
|
||||
|
||||
class CModeMessage : public CTargetMessage {
|
||||
public:
|
||||
CString GetModes() const { return GetParams(1); }
|
||||
CString GetModes() const { return GetParams(1).TrimPrefix_n(":"); }
|
||||
};
|
||||
|
||||
class CNickMessage : public CMessage {
|
||||
|
||||
Reference in New Issue
Block a user