summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 22:53:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 22:53:07 +0300
commitc7266cda03bcab72b147b5597a126f01f915fe2c (patch)
treea2d216f146f8ad96c1dd066abbef90cd8eb7002a /src/actions
parent76fd633b0042f2ab3a161460ee03c1978e7c0db9 (diff)
downloadmv-c7266cda03bcab72b147b5597a126f01f915fe2c.tar.gz
mv-c7266cda03bcab72b147b5597a126f01f915fe2c.tar.bz2
mv-c7266cda03bcab72b147b5597a126f01f915fe2c.tar.xz
mv-c7266cda03bcab72b147b5597a126f01f915fe2c.zip
Move chat command /serverignoreall into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp6
-rw-r--r--src/actions/actions.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 3111c551f..46a3d74d8 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -872,4 +872,10 @@ impHandler0(dump)
}
#endif
+impHandler0(serverIgnoreAll)
+{
+ Net::getChatHandler()->ignoreAll();
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 5a60e83f9..a731574bb 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -69,6 +69,7 @@ namespace Actions
decHandler(dirs);
decHandler(uptime);
decHandler(dump);
+ decHandler(serverIgnoreAll);
} // namespace Actions
#undef decHandler