summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>]";