Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix . command prefix on IRC trimming message wrongly
  • Loading branch information
UnknownShadow200 committed Sep 4, 2017
1 parent 41c66a0 commit c616baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fCraft/Network/IRCHandlers.cs
Expand Up @@ -33,7 +33,7 @@ internal static class IRCHandlers {
if (cmd.StartsWith("!" + cmdName) || cmd.StartsWith("." + cmdName) || cmd.StartsWith(nick + " " + kvp.Key)) {
if (!elapsed) return true;

int start = cmd[0] == '!' ? 0 : nick.Length;
int start = (cmd[0] == '!' || cmd[0] == '.') ? 0 : nick.Length;
start += cmdName.Length + 2; // account for ! or space, then space after command name for args
string args = cmd.Length > start ? cmd.Substring(start) : null;

Expand Down

0 comments on commit c616baf

Please sign in to comment.