fixed authentication issues

This commit is contained in:
anselme 2016-03-15 00:54:17 +01:00
parent e943dc185b
commit 61b4619a55
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,8 @@
read -p "git user ?" user
read -s -p "git password ?" pass
echo " "
read -s -p "bot password ?" botpass
mkdir build
while true
do
@ -10,6 +12,6 @@ do
qmake-qt5 ../SparrowBot.pro
make
cd bin
./SparrowBot -nogui nick=SparrowBot chan=epicsparrow server=irc.freenode.net port=6667
./SparrowBot -nogui nick=SparrowBot pass=$botpass chan=epicsparrow server=irc.freenode.net port=6667
cd ../..
done

View File

@ -33,7 +33,10 @@ bool BaseModule::messageHandler(Message msg)
{
status = ON_CHAN;
if(!getPass().isNull())
{
answer += privateSay(QString("release %1 %2").arg(getNick()).arg(getPass()), "nickserv");
answer += privateSay(QString("identify %1 %2").arg(getNick()).arg(getPass()), "nickserv");
}
answer += join(getChan());
ret = true;
}