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 -p "git user ?" user
read -s -p "git password ?" pass read -s -p "git password ?" pass
echo " "
read -s -p "bot password ?" botpass
mkdir build mkdir build
while true while true
do do
@ -10,6 +12,6 @@ do
qmake-qt5 ../SparrowBot.pro qmake-qt5 ../SparrowBot.pro
make make
cd bin 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 ../.. cd ../..
done done

View File

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