summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-14 17:11:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-14 17:11:34 +0000
commit1f9b2453f25eaf74d2c71c427c45d529694e4e34 (patch)
treeb31e218a526c76dc70057f74e1dc603f3f127de3
parentab4dee91de96555db158db91240ff91520318068 (diff)
Somebody *eyes a certain norwegian wannabe* defined two commands called WATCH... O_o
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8934 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands/cmd_stats.cpp6
-rw-r--r--src/modules/m_watch.cpp2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp
index de9237c61..72bdc69bd 100644
--- a/src/commands/cmd_stats.cpp
+++ b/src/commands/cmd_stats.cpp
@@ -154,6 +154,12 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str
case 'e':
ServerInstance->XLines->InvokeStats("E",223,user,results);
break;
+ case 'E':
+ results.push_back(sn+" 249 "+user->nick+" :Total events: "+ConvToStr(ServerInstance->SE->TotalEvents));
+ results.push_back(sn+" 249 "+user->nick+" :Read events: "+ConvToStr(ServerInstance->SE->ReadEvents));
+ results.push_back(sn+" 249 "+user->nick+" :Write events: "+ConvToStr(ServerInstance->SE->WriteEvents));
+ results.push_back(sn+" 249 "+user->nick+" :Error events: "+ConvToStr(ServerInstance->SE->ErrorEvents));
+ break;
/* stats m (list number of times each command has been used, plus bytecount) */
case 'm':
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index dff282633..eb1be40dc 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -77,7 +77,7 @@ watchentries* whos_watching_me;
class CommandSVSWatch : public Command
{
public:
- CommandSVSWatch (InspIRCd* Instance) : Command(Instance,"WATCH", 0, 2)
+ CommandSVSWatch (InspIRCd* Instance) : Command(Instance,"SVSWATCH", 0, 2)
{
this->source = "m_watch.so";
syntax = "<target> [C|L|S]|[+|-<nick>]";