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