maybe fixed version and control issues

This commit is contained in:
Anselme 2015-08-17 12:56:37 +02:00
parent 077f33878f
commit a613b35caa
2 changed files with 5 additions and 7 deletions

View File

@ -5,11 +5,9 @@ CONFIG += ordered c++11
SUBDIRS = ircbot \
app
app.depends = ircbot
app.depends = ircbot copydata
#copy res
copydata.commands = $(COPY_DIR) $$PWD/res $$OUT_PWD
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
copydata.target = $$OUT_PWD
copydata.commands = $(COPY_DIR) res
QMAKE_EXTRA_TARGETS += copydata

View File

@ -16,7 +16,7 @@ bool SparrowModule::messageHandler(Message msg)
answer = say("Bienvenue sur #epicsparrow "+msg.nick+"!");
return true;
}
else if(msg.command.compare("PRIVMSG"))
else if(msg.command.compare(QString("PRIVMSG"), Qt::CaseInsensitive) == 0)
{
User* user = getUsers()->getFromNick(msg.nick);
if(msg.args.startsWith("!control ") && user->isOp())