BastliBridge

git clone git://xatko.vsos.ethz.ch/BastliBridge.git
Log | Files | Refs | Submodules | README

commit 7de1b69b9064d584dfa31ca9621aa029cb1ac243
parent a8aa3167eb58157f95d26bbfa47f34d5d5e35e6d
Author: Dominik Schmidt <schmidom@student.ethz.ch>
Date:   Wed, 27 Dec 2017 14:58:29 +0100

Invert check for @ in telegram-botcommands
Diffstat:
Msrc/bot.d | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bot.d b/src/bot.d @@ -295,7 +295,7 @@ struct Bot{ try{ auto split=msg.findSplit(" "); auto cmdbot=split[0].findSplit("@"); - if(cmdbot[1].length==0 && cmdbot[2]!=telegram.botName){ + if(cmdbot[1].length!=0 && cmdbot[2]!=telegram.botName){ trace("Not one of our commands"); } else{