Skip to content
Permalink
Browse files

Fix . command prefix on IRC trimming message wrongly

  • Loading branch information...
UnknownShadow200 committed Sep 4, 2017
1 parent 41c66a0 commit c616baf33d8a2957ce66711ebfe61ab0609c32a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 fCraft/Network/IRCHandlers.cs
@@ -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;

0 comments on commit c616baf

Please sign in to comment.
You can’t perform that action at this time.