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 (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 },