mirror of
https://github.com/znc/znc.git
synced 2026-06-29 06:21:29 +02:00
Add CCTCPMessage::IsReply()
This commit is contained in:
@@ -103,6 +103,7 @@ public:
|
||||
|
||||
class CCTCPMessage : public CTargetMessage {
|
||||
public:
|
||||
bool IsReply() const { return GetCommand().Equals("NOTICE"); }
|
||||
CString GetText() const { return GetParam(1).TrimPrefix_n("\001").TrimSuffix_n("\001"); }
|
||||
void SetText(const CString& sText) { SetParam(1, "\001" + sText + "\001"); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user