Skip to content

Commit

Permalink
Fix shell module. It didn't send anything to user.
Browse files Browse the repository at this point in the history
When the socket fires the Read event, CModule's m_pNetwork isn't set
anymore.
  • Loading branch information
Alexey Sokolov committed Oct 3, 2011
1 parent 59c6215 commit c646479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/extra/shell.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit c646479

Please sign in to comment.