From 63abf135263107feb9fa77c70c4ffd48abe6f010 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sun, 14 Jun 2020 19:54:45 +0100 Subject: Switch to using @ for commands --- Blatech.php | 2 +- Client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Blatech.php b/Blatech.php index fc414c3..305aea7 100644 --- a/Blatech.php +++ b/Blatech.php @@ -14,7 +14,7 @@ class Blatech $args = static::sanitiseArgs($args); $nick = ltrim(explode('!', $message[0])[0], ":"); $channel = $message[2]; - $msg = explode(" ", ltrim(trim($message[3], "\r\n"), ":!")); + $msg = explode(" ", ltrim(trim($message[3], "\r\n"), ":@")); if (!isset($msg[0])) { return null; diff --git a/Client.php b/Client.php index 27b3126..f5cb7f2 100644 --- a/Client.php +++ b/Client.php @@ -165,7 +165,7 @@ class Client if ($message[0] == 'PING') { $this->pongCommand($message[1]); } else { - if (strpos($message[3], ":!") === 0) { + if (strpos($message[3], ":@") === 0) { $args = ''; if(($count = count($message)) > 4) { for ($i = 4; $i < $count; $i++ ) { -- cgit v1.2.3