Browse Source

Um... name monitor subcommands handler properly

tags/v0.11.0
Daniel Oaks 6 years ago
parent
commit
27c575e191
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      irc/handlers.go
  2. 1
    1
      irc/monitor.go

+ 1
- 1
irc/handlers.go View File

@@ -1445,7 +1445,7 @@ func umodeHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Res
1445 1445
 
1446 1446
 // MONITOR <subcmd> [params...]
1447 1447
 func monitorHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
1448
-	handler, exists := metadataSubcommands[strings.ToLower(msg.Params[0])]
1448
+	handler, exists := monitorSubcommands[strings.ToLower(msg.Params[0])]
1449 1449
 
1450 1450
 	if !exists {
1451 1451
 		rb.Add(nil, server.name, ERR_UNKNOWNERROR, client.Nick(), "MONITOR", msg.Params[0], client.t("Unknown subcommand"))

+ 1
- 1
irc/monitor.go View File

@@ -103,7 +103,7 @@ func (manager *MonitorManager) List(client *Client) (nicks []string) {
103 103
 }
104 104
 
105 105
 var (
106
-	metadataSubcommands = map[string]func(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool{
106
+	monitorSubcommands = map[string]func(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool{
107 107
 		"-": monitorRemoveHandler,
108 108
 		"+": monitorAddHandler,
109 109
 		"c": monitorClearHandler,

Loading…
Cancel
Save