mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 17:02:21 -05:00
New command syntax: /command <param> [<optional>]
This commit is contained in:
parent
dee13c82bf
commit
3abf251c36
@ -100,8 +100,7 @@ public class CommandParser
|
||||
errorMessage.setColor(Message.COLOR_RED);
|
||||
channel.addMessage(errorMessage);
|
||||
|
||||
Message usageMessage = new Message("Usage of " + type + ": " + command.getUsage());
|
||||
//usageMessage.setColor(Message.COLOR_RED);
|
||||
Message usageMessage = new Message("Syntax: " + command.getUsage());
|
||||
channel.addMessage(usageMessage);
|
||||
|
||||
Intent intent = new Intent(Broadcast.CHANNEL_MESSAGE);
|
||||
|
@ -52,6 +52,6 @@ public class JoinCommand extends BaseCommand
|
||||
@Override
|
||||
public String getUsage()
|
||||
{
|
||||
return "/join channel [key]";
|
||||
return "/join <channel> [<key>]";
|
||||
}
|
||||
}
|
||||
|
@ -50,6 +50,6 @@ public class NickCommand extends BaseCommand
|
||||
@Override
|
||||
public String getUsage()
|
||||
{
|
||||
return "/nick nickname";
|
||||
return "/nick <nickname>";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user