mirror of
https://github.com/znc/znc.git
synced 2026-06-30 23:11:28 +02:00
Switch some modules to newer API
This commit is contained in:
+7
-7
@@ -141,18 +141,18 @@ class CSChat : public CModule {
|
||||
}
|
||||
}
|
||||
|
||||
EModRet OnUserRaw(CString& sLine) override {
|
||||
if (sLine.StartsWith("schat ")) {
|
||||
OnModCommand("chat " + sLine.substr(6));
|
||||
return (HALT);
|
||||
EModRet OnUserRawMessage(CMessage& msg) override {
|
||||
if (!msg.GetCommand().Equals("schat")) return CONTINUE;
|
||||
|
||||
} else if (sLine.Equals("schat")) {
|
||||
const CString sParams = msg.GetParams(0);
|
||||
if (sParams.empty()) {
|
||||
PutModule("SChat User Area ...");
|
||||
OnModCommand("help");
|
||||
return (HALT);
|
||||
} else {
|
||||
OnModCommand("chat " + sParams);
|
||||
}
|
||||
|
||||
return (CONTINUE);
|
||||
return HALT;
|
||||
}
|
||||
|
||||
void OnModCommand(const CString& sCommand) override {
|
||||
|
||||
Reference in New Issue
Block a user