mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 23:44:52 +01:00
fix: Consider prefix length when slicing.
This commit is contained in:
@@ -85,7 +85,7 @@ func sendServerChatMessage(s *Session, message string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func parseChatCommand(s *Session, command string) {
|
func parseChatCommand(s *Session, command string) {
|
||||||
args := strings.Split(command[1:], " ")
|
args := strings.Split(command[len(s.server.erupeConfig.CommandPrefix):], " ")
|
||||||
switch args[0] {
|
switch args[0] {
|
||||||
case commands["PSN"].Prefix:
|
case commands["PSN"].Prefix:
|
||||||
if commands["PSN"].Enabled {
|
if commands["PSN"].Enabled {
|
||||||
|
|||||||
Reference in New Issue
Block a user