From 194fa9af9fc32762b4aa57a470f5421ea7b8fc32 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 23 Oct 2016 18:59:13 +1000 Subject: [PATCH] HELP: Check topics exist at startup, fix a bug --- CHANGELOG.md | 1 + irc/help.go | 92 ++++++++++++++++++++++++++++++++++----------------- irc/server.go | 8 +++++ 3 files changed, 71 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5fcd5fe..c79cbcf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ New release of Oragono! ### Removed ### Fixed +* Fixed bug where `HELP` wouldn't correctly display for operators, and added more help topics. ## [0.3.0] - 2016-10-23 diff --git a/irc/help.go b/irc/help.go index b793b788..a0a1b27c 100644 --- a/irc/help.go +++ b/irc/help.go @@ -18,7 +18,7 @@ type HelpEntry struct { // used for duplicates var ( cmodeHelpText = `== Channel Modes == - + Oragono supports the following channel modes: = Type A - list modes = @@ -38,7 +38,7 @@ Oragono supports the following channel modes: +m | Moderated mode, only privileged clients can talk on the channel. +n | No-outside-messages mode, only users that are on the channel can send the channel messages. +t | Only channel opers can modify the topic. - +s | Secret mode, channel won't show up in /LIST or whois replies. + +s | Secret mode, channel won't show up in /LIST or whois replies. = Prefixes = @@ -48,7 +48,7 @@ Oragono supports the following channel modes: +h (%) | Halfop channel mode. +v (+) | Voice channel mode.` umodeHelpText = `== User Modes == - + Oragono supports the following user modes: +a | User is marked as being away. This mode is set with the /AWAY command. @@ -62,7 +62,7 @@ var Help = map[string]HelpEntry{ // Commands "authenticate": { text: `AUTHENTICATE - + Used during SASL authentication. See the IRCv3 specs for more info: http://ircv3.net/specs/extensions/sasl-3.1.html`, }, @@ -74,7 +74,7 @@ longer away.`, }, "cap": { text: `CAP [:] - + Used in capability negotiation. See the IRCv3 specs for more info: http://ircv3.net/specs/core/capability-negotiation-3.1.html http://ircv3.net/specs/core/capability-negotiation-3.2.html`, @@ -82,7 +82,7 @@ http://ircv3.net/specs/core/capability-negotiation-3.2.html`, "debug": { oper: true, text: `DEBUG