Fix network module calls

These calls really should be network module calls, so this fixed
NETWORKMODULECALL() to again silently do nothing if the network is NULL.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2011-09-16 11:06:32 +02:00
parent 57c4ccf4f2
commit f97a6a8a26
3 changed files with 22 additions and 21 deletions

View File

@@ -25,7 +25,7 @@ void CClient::UserCommand(CString& sLine) {
return;
}
USERMODULECALL(OnStatusCommand(sLine), m_pUser, this, return);
NETWORKMODULECALL(OnStatusCommand(sLine), m_pUser, m_pNetwork, this, return);
const CString sCommand = sLine.Token(0);