summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 23:43:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 23:44:11 +0300
commit84edefedf8e3688f618f0dde8169d6ee18624e6e (patch)
treed54e877cdb20ff88f998f4f07647a30fbb738177 /src/actions
parent8314a1808ff96ec8990c4d9055cad41c05f07dc2 (diff)
downloadmv-84edefedf8e3688f618f0dde8169d6ee18624e6e.tar.gz
mv-84edefedf8e3688f618f0dde8169d6ee18624e6e.tar.bz2
mv-84edefedf8e3688f618f0dde8169d6ee18624e6e.tar.xz
mv-84edefedf8e3688f618f0dde8169d6ee18624e6e.zip
Move chat command /error into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp7
-rw-r--r--src/actions/actions.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 2514ac180..d803de671 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -884,4 +884,11 @@ impHandler0(serverUnIgnoreAll)
return true;
}
+impHandler0(error)
+{
+ const int *const ptr = nullptr;
+ logger->log("test %d", *ptr);
+ exit(1);
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index e3e6a2c02..b773f9992 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -71,6 +71,7 @@ namespace Actions
decHandler(dump);
decHandler(serverIgnoreAll);
decHandler(serverUnIgnoreAll);
+ decHandler(error) __attribute__ ((noreturn));
} // namespace Actions
#undef decHandler