From c6464797e6c641422d336f6e391ad5ed81730b0d Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Tue, 4 Oct 2011 00:00:11 +0700 Subject: [PATCH] Fix shell module. It didn't send anything to user. When the socket fires the Read event, CModule's m_pNetwork isn't set anymore. --- modules/extra/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/extra/shell.cpp b/modules/extra/shell.cpp index 5067ff1228..770f706ee4 100644 --- a/modules/extra/shell.cpp +++ b/modules/extra/shell.cpp @@ -94,7 +94,7 @@ class CShellMod : public CModule { CString sPath = m_sPath.Replace_n(" ", "_"); CString sSource = ":" + GetModNick() + "!shell@" + sPath; CString sLine = sSource + " PRIVMSG " + m_pClient->GetNick() + " :" + sMsg; - PutUser(sLine); + m_pClient->PutClient(sLine); } void RunCommand(const CString& sCommand) {