3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-01-09 11:42:45 +01:00

rp: Mention mode in help text, fix comment

This commit is contained in:
Daniel Oaks 2016-11-14 14:03:48 +10:00
parent 8dfa888552
commit 7f4bbbc587
2 changed files with 8 additions and 4 deletions

View File

@ -217,12 +217,16 @@ Sends the text to the given targets as a NOTICE.`,
"npc": { "npc": {
text: `NPC <target> <sourcenick> <text to be sent> text: `NPC <target> <sourcenick> <text to be sent>
The NPC command is used to send a message to the target as the source.`, The NPC command is used to send a message to the target as the source.
Requires the roleplay mode (+E) to be set on the target.`,
}, },
"npca": { "npca": {
text: `NPCA <target> <sourcenick> <text to be sent> text: `NPCA <target> <sourcenick> <text to be sent>
The NPC command is used to send an action to the target as the source.`, The NPC command is used to send an action to the target as the source.
Requires the roleplay mode (+E) to be set on the target.`,
}, },
"oper": { "oper": {
text: `OPER <name> <password> text: `OPER <name> <password>

View File

@ -25,7 +25,7 @@ func sceneHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
return false return false
} }
// NPC <target> <text to be sent> // NPC <target> <sourcenick> <text to be sent>
func npcHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool { func npcHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
target := msg.Params[0] target := msg.Params[0]
fakeSource := msg.Params[1] fakeSource := msg.Params[1]
@ -44,7 +44,7 @@ func npcHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
return false return false
} }
// NPCA <target> <text to be sent> // NPCA <target> <sourcenick> <text to be sent>
func npcaHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool { func npcaHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
target := msg.Params[0] target := msg.Params[0]
fakeSource := msg.Params[1] fakeSource := msg.Params[1]