fix: Consider prefix length when slicing.

This commit is contained in:
Matthew
2023-11-27 04:07:44 -05:00
parent ce773a6c56
commit 23bc66eda5

View File

@@ -85,7 +85,7 @@ func sendServerChatMessage(s *Session, message string) {
}
func parseChatCommand(s *Session, command string) {
args := strings.Split(command[1:], " ")
args := strings.Split(command[len(s.server.erupeConfig.CommandPrefix):], " ")
switch args[0] {
case commands["PSN"].Prefix:
if commands["PSN"].Enabled {