mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Make sure OnStatusCommand() is always called when it should be
We didn't call the module hook for commands executed via /znc instead of /msg *status. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1562 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "User.h"
|
||||
#include "znc.h"
|
||||
|
||||
void CClient::UserCommand(const CString& sLine) {
|
||||
void CClient::UserCommand(CString& sLine) {
|
||||
if (!m_pUser) {
|
||||
return;
|
||||
}
|
||||
@@ -24,6 +24,8 @@ void CClient::UserCommand(const CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
MODULECALL(OnStatusCommand(sLine), m_pUser, this, return);
|
||||
|
||||
CString sCommand = sLine.Token(0);
|
||||
|
||||
if (sCommand.Equals("HELP")) {
|
||||
|
||||
Reference in New Issue
Block a user