From e41f5032024635faec37cf04e2a9906eeb42cc32 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 1 Oct 2015 21:39:47 +0200
Subject: degesch: add an /oper command
Mostly just because bitlbee suggested it to me and it didn't work.
---
degesch.c | 4 ++++
1 file changed, 4 insertions(+)
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",
"[]",
handle_command_motd, HANDLER_SERVER },
+ { "oper", "Authenticate as an IRC operator",
+ " ",
+ handle_command_oper, HANDLER_SERVER },
{ "stats", "Query server statistics",
"[ []]",
handle_command_stats, HANDLER_SERVER },
--
cgit v1.2.3-70-g09d2