degesch: add an /oper command

Mostly just because bitlbee suggested it to me and it didn't work.
This commit is contained in:
Přemysl Eric Janouch 2015-10-01 21:39:47 +02:00
parent 762aaffecf
commit e41f503202

View File

@ -8144,6 +8144,7 @@ CHANMODE_HANDLER (voice, true, 'v') CHANMODE_HANDLER (devoice, false, 'v')
TRIVIAL_HANDLER (list, "LIST") TRIVIAL_HANDLER (list, "LIST")
TRIVIAL_HANDLER (who, "WHO") TRIVIAL_HANDLER (who, "WHO")
TRIVIAL_HANDLER (motd, "MOTD") TRIVIAL_HANDLER (motd, "MOTD")
TRIVIAL_HANDLER (oper, "OPER")
TRIVIAL_HANDLER (stats, "STATS") TRIVIAL_HANDLER (stats, "STATS")
TRIVIAL_HANDLER (away, "AWAY") TRIVIAL_HANDLER (away, "AWAY")
@ -8274,6 +8275,9 @@ g_command_handlers[] =
{ "motd", "Get the Message of The Day", { "motd", "Get the Message of The Day",
"[<target>]", "[<target>]",
handle_command_motd, HANDLER_SERVER }, handle_command_motd, HANDLER_SERVER },
{ "oper", "Authenticate as an IRC operator",
"<name> <password>",
handle_command_oper, HANDLER_SERVER },
{ "stats", "Query server statistics", { "stats", "Query server statistics",
"[<query> [<target>]]", "[<query> [<target>]]",
handle_command_stats, HANDLER_SERVER }, handle_command_stats, HANDLER_SERVER },