Browse Source

rp: Mention mode in help text, fix comment

tags/v0.5.0
Daniel Oaks 7 years ago
parent
commit
7f4bbbc587
2 changed files with 8 additions and 4 deletions
  1. 6
    2
      irc/help.go
  2. 2
    2
      irc/roleplay.go

+ 6
- 2
irc/help.go View File

@@ -217,12 +217,16 @@ Sends the text to the given targets as a NOTICE.`,
217 217
 	"npc": {
218 218
 		text: `NPC <target> <sourcenick> <text to be sent>
219 219
 		
220
-The NPC command is used to send a message to the target as the source.`,
220
+The NPC command is used to send a message to the target as the source.
221
+
222
+Requires the roleplay mode (+E) to be set on the target.`,
221 223
 	},
222 224
 	"npca": {
223 225
 		text: `NPCA <target> <sourcenick> <text to be sent>
224 226
 		
225
-The NPC command is used to send an action to the target as the source.`,
227
+The NPC command is used to send an action to the target as the source.
228
+
229
+Requires the roleplay mode (+E) to be set on the target.`,
226 230
 	},
227 231
 	"oper": {
228 232
 		text: `OPER <name> <password>

+ 2
- 2
irc/roleplay.go View File

@@ -25,7 +25,7 @@ func sceneHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
25 25
 	return false
26 26
 }
27 27
 
28
-// NPC <target> <text to be sent>
28
+// NPC <target> <sourcenick> <text to be sent>
29 29
 func npcHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
30 30
 	target := msg.Params[0]
31 31
 	fakeSource := msg.Params[1]
@@ -44,7 +44,7 @@ func npcHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
44 44
 	return false
45 45
 }
46 46
 
47
-// NPCA <target> <text to be sent>
47
+// NPCA <target> <sourcenick> <text to be sent>
48 48
 func npcaHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
49 49
 	target := msg.Params[0]
50 50
 	fakeSource := msg.Params[1]

Loading…
Cancel
Save