aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-10-01 21:39:47 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-10-01 21:39:47 +0200
commite41f5032024635faec37cf04e2a9906eeb42cc32 (patch)
tree97ec3801d1a64bc902e6fc198ecbb431f5672798
parent762aaffecfccee9f284b90bdf90e6c4af26f62cb (diff)
downloadxK-e41f5032024635faec37cf04e2a9906eeb42cc32.tar.gz
xK-e41f5032024635faec37cf04e2a9906eeb42cc32.tar.xz
xK-e41f5032024635faec37cf04e2a9906eeb42cc32.zip
degesch: add an /oper command
Mostly just because bitlbee suggested it to me and it didn't work.
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index e41bfad..99b68b8 100644
--- a/degesch.c
+++ b/degesch.c
@@ -8144,6 +8144,7 @@ CHANMODE_HANDLER (voice, true, 'v') CHANMODE_HANDLER (devoice, false, 'v')
TRIVIAL_HANDLER (list, "LIST")
TRIVIAL_HANDLER (who, "WHO")
TRIVIAL_HANDLER (motd, "MOTD")
+TRIVIAL_HANDLER (oper, "OPER")
TRIVIAL_HANDLER (stats, "STATS")
TRIVIAL_HANDLER (away, "AWAY")
@@ -8274,6 +8275,9 @@ g_command_handlers[] =
{ "motd", "Get the Message of The Day",
"[<target>]",
handle_command_motd, HANDLER_SERVER },
+ { "oper", "Authenticate as an IRC operator",
+ "<name> <password>",
+ handle_command_oper, HANDLER_SERVER },
{ "stats", "Query server statistics",
"[<query> [<target>]]",
handle_command_stats, HANDLER_SERVER },