Moved GetDescription() into second argument of MODULEDEFS()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@366 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-26 20:42:13 +00:00
parent 1c90fd9beb
commit c52542e469
12 changed files with 53 additions and 59 deletions
+4 -6
View File
@@ -20,6 +20,9 @@
*
*
* $Log$
* Revision 1.14 2005/05/26 20:42:13 prozacx
* Moved GetDescription() into second argument of MODULEDEFS()
*
* Revision 1.13 2005/05/15 08:27:27 prozacx
* Changed return value from bool to EModRet on most hooks
*
@@ -182,11 +185,6 @@ public:
Away();
}
virtual CString GetDescription()
{
return ( "Stores messages while away, also auto away" );
}
virtual void OnModCommand( const CString& sCommand )
{
CString sCmdName = sCommand.Token(0);
@@ -443,5 +441,5 @@ void CAwayJob::RunJob()
}
}
MODULEDEFS(CAway)
MODULEDEFS(CAway, "Stores messages while away, also auto away")
+4 -6
View File
@@ -15,6 +15,9 @@
* Author: imaginos <imaginos@imaginos.net>
*
* $Log$
* Revision 1.8 2005/05/26 20:42:13 prozacx
* Moved GetDescription() into second argument of MODULEDEFS()
*
* Revision 1.7 2005/05/08 06:42:02 prozacx
* Moved CUtils::ToString() into CString class
*
@@ -108,11 +111,6 @@ public:
}
}
virtual CString GetDescription()
{
return ( "Monitors Email activity on local disk /var/mail/user" );
}
virtual void OnModCommand( const CString& sCommand );
void StartParser();
@@ -287,5 +285,5 @@ void CEmailJob::RunJob()
CEmail *p = (CEmail *)m_pModule;
p->StartParser();
}
MODULEDEFS(CEmail)
MODULEDEFS(CEmail, "Monitors Email activity on local disk /var/mail/user")
+1 -1
View File
@@ -489,7 +489,7 @@ private:
};
GLOBALMODULEDEFS( CModPerl )
GLOBALMODULEDEFS( CModPerl, "Loads perl scripts as ZNC modules" )
+1 -5
View File
@@ -9,10 +9,6 @@ public:
MODCONSTRUCTOR(CRawMod) {}
virtual ~CRawMod() {}
virtual CString GetDescription() {
return "View all of the raw traffic.";
}
virtual EModRet OnRaw(CString& sLine) {
PutModule("IRC -> [" + sLine + "]");
return CONTINUE;
@@ -24,5 +20,5 @@ public:
}
};
MODULEDEFS(CRawMod)
MODULEDEFS(CRawMod, "View all of the raw traffic")
+1 -5
View File
@@ -38,10 +38,6 @@ public:
return true;
}
virtual CString GetDescription() {
return "To be used as a sample for writing modules.";
}
virtual void OnIRCConnected() {
PutModule("You got connected BoyOh.");
}
@@ -200,5 +196,5 @@ public:
}
};
MODULEDEFS(CSampleMod)
MODULEDEFS(CSampleMod, "To be used as a sample for writing modules")
+4 -6
View File
@@ -26,6 +26,9 @@
* better solution then plain text.
*
* $Log$
* Revision 1.25 2005/05/26 20:42:13 prozacx
* Moved GetDescription() into second argument of MODULEDEFS()
*
* Revision 1.24 2005/05/17 17:18:35 prozacx
* Changed CChan reference to non-const in all hooks
*
@@ -242,11 +245,6 @@ public:
}
}
virtual CString GetDescription()
{
return ( "Stores channel buffers to disk, encrypted." );
}
virtual void OnModCommand( const CString& sCommand )
{
CString::size_type iPos = sCommand.find( " " );
@@ -414,5 +412,5 @@ void CSaveBuffJob::RunJob()
p->SaveBufferToDisk();
}
MODULEDEFS(CSaveBuff)
MODULEDEFS(CSaveBuff, "Stores channel buffers to disk, encrypted")
+4 -6
View File
@@ -18,6 +18,9 @@ using std::pair;
* Author: imaginos <imaginos@imaginos.net>
*
* $Log$
* Revision 1.15 2005/05/26 20:42:13 prozacx
* Moved GetDescription() into second argument of MODULEDEFS()
*
* Revision 1.14 2005/05/18 03:22:52 imaginos
* bring Csocket up to date, includes new needed function GetSockByFD()
*
@@ -215,11 +218,6 @@ public:
m_pManager->DelSock( a-- );
}
}
virtual CString GetDescription()
{
return ( "Secure cross platform (:P) chat system" );
}
virtual EModRet OnUserRaw( CString & sLine )
{
@@ -569,5 +567,5 @@ void CRemMarkerJob::RunJob()
// store buffer
}
MODULEDEFS(CSChat)
MODULEDEFS(CSChat, "Secure cross platform (:P) chat system")
+1 -5
View File
@@ -98,10 +98,6 @@ public:
}
}
virtual CString GetDescription() {
return "Gives shell access.";
}
virtual void OnModCommand(const CString& sCommand) {
if ((strcasecmp(sCommand.c_str(), "cd") == 0) || (strncasecmp(sCommand.c_str(), "cd ", 3) == 0)) {
CString sPath = CUtils::ChangeDir(m_sPath, ((sCommand.length() == 2) ? CString(m_pUser->GetHomePath()) : CString(sCommand.substr(3))), m_pUser->GetHomePath());
@@ -214,5 +210,5 @@ void CExecSock::Disconnected() {
m_pParent->PutShell("znc$");
}
MODULEDEFS(CShellMod)
MODULEDEFS(CShellMod, "Gives shell access")
+1 -6
View File
@@ -20,11 +20,6 @@ public:
virtual bool OnLoad(const CString& sArgs);
virtual CString GetDescription()
{
return ( "configless sticky chans, keeps you there very stickily even" );
}
virtual void OnModCommand( const CString& sCommand )
{
CString sCmdName = sCommand.Token(0);
@@ -80,4 +75,4 @@ bool CStickyChan::OnLoad(const CString& sArgs)
return( true );
}
MODULEDEFS(CStickyChan)
MODULEDEFS(CStickyChan, "configless sticky chans, keeps you there very stickily even")
+1 -5
View File
@@ -160,10 +160,6 @@ public:
virtual ~CWatcherMod() {
}
virtual CString GetDescription() {
return "Copy activity from a specific user into a separate window.";
}
virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) {
Process(OpNick, "* " + OpNick.GetNick() + " sets mode: " + sModes + " " + sArgs + " on " + Channel.GetName(), Channel.GetName());
}
@@ -506,4 +502,4 @@ private:
CBuffer m_Buffer;
};
MODULEDEFS(CWatcherMod)
MODULEDEFS(CWatcherMod, "Copy activity from a specific user into a separate window")