Trim command before processing private message.
This commit is contained in:
parent
6f575bf921
commit
f4c6bf48fa
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
|
|||
message: String
|
||||
) {
|
||||
if (logger.isDebugEnabled) logger.debug(">>> $sender : $message")
|
||||
val cmds = message.split(" ".toRegex(), 2)
|
||||
val cmds = message.trim().split(" ".toRegex(), 2)
|
||||
val cmd = cmds[0].lowercase()
|
||||
val args = if (cmds.size > 1) {
|
||||
cmds[1].trim()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue