mirror of
https://github.com/znc/znc.git
synced 2026-05-02 19:42:32 +02:00
Replace the deprecated overload of CMessage::GetParam
This commit is contained in:
@@ -1204,7 +1204,7 @@ bool CClient::OnPingMessage(CMessage& Message) {
|
||||
// All PONGs are generated by ZNC. We will still forward this to
|
||||
// the ircd, but all PONGs from irc will be blocked.
|
||||
if (!Message.GetParams().empty())
|
||||
PutClient(":irc.znc.in PONG irc.znc.in " + Message.GetParams(0));
|
||||
PutClient(":irc.znc.in PONG irc.znc.in " + Message.GetParamsColon(0));
|
||||
else
|
||||
PutClient(":irc.znc.in PONG irc.znc.in");
|
||||
return false;
|
||||
@@ -1305,10 +1305,10 @@ bool CClient::OnOtherMessage(CMessage& Message) {
|
||||
CString sModCommand;
|
||||
|
||||
if (sTarget.TrimPrefix(m_pUser->GetStatusPrefix())) {
|
||||
sModCommand = Message.GetParams(1);
|
||||
sModCommand = Message.GetParamsColon(1);
|
||||
} else {
|
||||
sTarget = "status";
|
||||
sModCommand = Message.GetParams(0);
|
||||
sModCommand = Message.GetParamsColon(0);
|
||||
}
|
||||
|
||||
if (sTarget.Equals("status")) {
|
||||
@@ -1330,7 +1330,7 @@ bool CClient::OnOtherMessage(CMessage& Message) {
|
||||
return true;
|
||||
}
|
||||
|
||||
CString sPatterns = Message.GetParams(0);
|
||||
CString sPatterns = Message.GetParamsColon(0);
|
||||
|
||||
if (sPatterns.empty()) {
|
||||
PutStatusNotice(t_s("Usage: /attach <#chans>"));
|
||||
@@ -1352,7 +1352,7 @@ bool CClient::OnOtherMessage(CMessage& Message) {
|
||||
return true;
|
||||
}
|
||||
|
||||
CString sPatterns = Message.GetParams(0);
|
||||
CString sPatterns = Message.GetParamsColon(0);
|
||||
|
||||
if (sPatterns.empty()) {
|
||||
PutStatusNotice(t_s("Usage: /detach <#chans>"));
|
||||
|
||||
Reference in New Issue
Block a user