fixed authentication issues
This commit is contained in:
parent
e943dc185b
commit
61b4619a55
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user