Skip to content

Commit c616baf

Browse files
Fix . command prefix on IRC trimming message wrongly
1 parent 41c66a0 commit c616baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fCraft/Network/IRCHandlers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static bool HandleCommand(string nick, string userNick, string rawMessage
3333
if (cmd.StartsWith("!" + cmdName) || cmd.StartsWith("." + cmdName) || cmd.StartsWith(nick + " " + kvp.Key)) {
3434
if (!elapsed) return true;
3535

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

0 commit comments

Comments
 (0)