mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-08 16:42:10 +00:00
Fix command prefix parsing code in _handle_message
This commit is contained in:
parent
aa90c78224
commit
ab19e0db91
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
|
@ -378,7 +378,8 @@ class Server():
|
|||
|
||||
# Run CMDTHREAD
|
||||
threading.Thread(target = self._handle_command, args = (cmd, msg["target_channel"], )).start()
|
||||
elif msg["params"][-1].startswith(self.bot_prefix):
|
||||
|
||||
if msg["params"][-1].startswith(self.bot_prefix):
|
||||
# Get rid of the bot prefix
|
||||
command = msg["params"][-1].strip(self.bot_prefix)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue