Files
znc/modules/raw.cpp
psychon 0c64f53bc9 Make query to *raw send the command to IRC instead of to the client
IMHO this makes way more sense. Really, a lot more sense.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1892 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:04:52 +00:00

33 lines
715 B
C++

/*
* Copyright (C) 2004-2010 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include "User.h"
class CRawMod : public CModule {
public:
MODCONSTRUCTOR(CRawMod) {}
virtual ~CRawMod() {}
virtual EModRet OnRaw(CString& sLine) {
PutModule("IRC -> [" + sLine + "]");
return CONTINUE;
}
virtual void OnModCommand(const CString& sCommand) {
PutIRC(sCommand);
}
virtual EModRet OnUserRaw(CString& sLine) {
PutModule("YOU -> [" + sLine + "]");
return CONTINUE;
}
};
MODULEDEFS(CRawMod, "View all of the raw traffic")