Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: HostServ  (Read 12638 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
HostServ
« on: March 19, 2020, 09:42:44 PM »

Hello,

I have put a perl bot online (idlebot) and have tried to set a vhost on the nick with
Code: [Select]
/msg hostserv set <nick> <hostmask> and tried
Code: [Select]
/msg hostserv activate <nick> the bot didn't get the vhost. But if i login on my computer with
Code: [Select]
/msg nickserv identify <password> the vhost gets displayed. Do i do something wrong?
Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 259
    • Réseau IRC francophone
Re: HostServ
« Reply #1 on: March 19, 2020, 10:09:36 PM »

Does your idlebot identify himself against NickServ ?
Can you show us its config file ?

I know that idlerpg bot has a botident setting, but depending on your bot, the system could be different.

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #2 on: March 20, 2020, 01:07:41 AM »

Hello,

http://idlerpg.net/bot.v3.1.2.tar.gz <-- its the one from here :)
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #3 on: March 20, 2020, 07:10:02 AM »

i also have idlerpg as a bot, but here is what i usually do for my bots:

i do go up on the server, register the nick, asks for the vhost, waits, get it, activate it. :)
then i quit, set up the bot to identify against nickserv then just connect it. and voila.
if the bot identifies well, the bot gets the vhost.

-------------------

also idlerpg have option to identify with nickserv.
did you set it up properly?


# (identify) command to send upon successful connect. if using a privmsg
# command, you must begin the text of the message with a ":" -- see below
botident PRIVMSG NickServ :identify <pwhere>

# command sent to recover nick if bot's primary nickname is in use if using a
# privmsg command, you must begin the text of the message with a ":" -- see
# below
botghostcmd PRIVMSG NickServ :ghost %botnick% <pwhere>



if you do a
/msg nickserv status <idlerpgbotnick>
what's the number which you get back ?:) does the /whois of the bot shows that the bot is identified against nickserv?

Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 259
    • Réseau IRC francophone
Re: HostServ
« Reply #4 on: March 20, 2020, 11:15:20 AM »

And I do exactly the same, and it's work.
So, check your configuration, test the vhost with your IRC client, disconnect, then start idlerpg.

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #5 on: March 20, 2020, 01:12:25 PM »

And I do exactly the same, and it's work.
So, check your configuration, test the vhost with your IRC client, disconnect, then start idlerpg.

Thanks for the reply, i get :
Code: [Select]
NickServ- STATUS idlebot 3 idlebot
Logged

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #6 on: March 20, 2020, 01:13:56 PM »

Quote from: Lord225
i also have idlerpg as a bot, but here is what i usually do for my bots:

i do go up on the server, register the nick, asks for the vhost, waits, get it, activate it. :)
then i quit, set up the bot to identify against nickserv then just connect it. and voila.
if the bot identifies well, the bot gets the vhost.

-------------------

also idlerpg have option to identify with nickserv.
did you set it up properly?


# (identify) command to send upon successful connect. if using a privmsg
# command, you must begin the text of the message with a ":" -- see below
botident PRIVMSG NickServ :identify <pwhere>

# command sent to recover nick if bot's primary nickname is in use if using a
# privmsg command, you must begin the text of the message with a ":" -- see
# below
botghostcmd PRIVMSG NickServ :ghost %botnick% <pwhere>



Yes i have the same options :)
Code: [Select]
# (identify) command to send upon successful connect. if using a privmsg
# command, you must begin the text of the message with a ":" -- see below
botident PRIVMSG NickServ :identify <passowrd>

# modes to set bot upon successful connect
botmodes +ix

# command to send upon joining channel. %botnick% will evaluate to the bot's
# current nickname, so you don't have to worry about opping the wrong person. if
# using a privmsg command, you must begin the text of the message with a ":" --
# see below
botopcmd PRIVMSG ChanServ :op #idlerpg %botnick%

# command sent to recover nick if bot's primary nickname is in use if using a
# privmsg command, you must begin the text of the message with a ":" -- see
# below
botghostcmd PRIVMSG NickServ :ghost idlebot <password>

Yes, im identified to nickserv
Quote
14:17:21 * idlebot is using modes +irx
14:17:21 * idlebot is logged in as idlebot
14:17:21 * idlebot is a registered nick
« Last Edit: March 20, 2020, 01:18:00 PM by Stefan »
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #7 on: March 20, 2020, 01:17:50 PM »

i hope the password is there, but since you have status 3 for the bot, probably it's right.

go ahead, kill the bot, connect with a simple irc client with the nick of the bot, identify and do a /hs on
after that, quit and start the bot. :)

Logged

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #8 on: March 20, 2020, 01:26:22 PM »

Hello,

I did as you said, but didn't make a different.

https://gyazo.com/37e4f1c5e66c0a2d8c4cbaaf4faddd47

The bot is now online, but without the vhost :(
https://gyazo.com/f6c4fc858cce212397d4efde44fe7eba
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #9 on: March 20, 2020, 01:30:28 PM »

do a /whois on the bot after it joins to the channel.
Logged

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #10 on: March 20, 2020, 01:33:18 PM »

do a /whois on the bot after it joins to the channel.

Code: [Select]
14:32:23 * idlebot is idlebot!idlebot@geekblog-k68.0cs.5c6lg4.IP * idlebot
14:32:23 * idlebot is connecting from idlebot@xxxxxxxxx xxxxxxxxx
14:32:23 * idlebot on &#idlerpg
14:32:23 * idlebot using irc.geekblog.dk (GeekBlog IRC Network)
14:32:23 * idlebot is using modes +irx
14:32:23 * idlebot is logged in as idlebot
14:32:23 * idlebot is a registered nick
14:32:23 * idlebot has been idle 8mins 29secs, signed on 8mins 38secs ago
14:32:23 * idlebot End of /WHOIS list.
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #11 on: March 20, 2020, 01:52:39 PM »

if you do a /hs list
does the bot appear there (i presume yes, but the host is related to a nick, and not to a different group, right?)

so if you connect with the bot's nick, and do a /ns identify <pw> ; do you get the vhost?
do a /whois to confirm it.
Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 259
    • Réseau IRC francophone
Re: HostServ
« Reply #12 on: March 20, 2020, 01:56:31 PM »

And when connected with the bot's nick (and identified), think to do a /hs on

Remember that the activate command validates a vhost query, but on[/on] activates its use.
« Last Edit: March 20, 2020, 01:58:29 PM by CrazyCat »
Logged

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #13 on: March 20, 2020, 01:59:34 PM »

Hello,

if you do a /hs list
does the bot appear there (i presume yes, but the host is related to a nick, and not to a different group, right?)

so if you connect with the bot's nick, and do a /ns identify <pw> ; do you get the vhost?
do a /whois to confirm it.


https://gyazo.com/f7385d1e842d54f76b3b3e4761b2c3ca <--- the bot is there :)
And yes if i do /ns identify <pw> the vhost gets activated. When I log in as the bots username.

And when connected with the bot's nick (and identified), think to do a /hs on

Remember that the activate command validates a vhost query, but on[/on] activates its use.
I have tried that as well.

What version of the bot do you guys use ? maybe the issue is with the bot script?
« Last Edit: March 20, 2020, 02:02:22 PM by Stefan »
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #14 on: March 20, 2020, 02:27:42 PM »

is this anope v2.0.7 ?
i dont have any probs with this at all. i have several bots though.


"What version of the bot do you guys use ? maybe the issue is with the bot script?"
i use v3.1.2 (latest i presume). and no, this cannot be a problem with that, because the bot does not do anything, other than identify for the nick.
HostServ should set the host automatically if the host is activated and the "user" used /hs on

« Last Edit: March 20, 2020, 02:42:34 PM by Lord255 »
Logged

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #15 on: March 20, 2020, 03:58:23 PM »

Hello,

How can i check which version of anope it is?

it uses : Latest News - Anope 2.0.7 Release
« Last Edit: March 20, 2020, 04:05:29 PM by Stefan »
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #16 on: March 20, 2020, 04:26:16 PM »

would you mind to come to anope's irc server and talk there? i mean it would be easier.
and thb i would like to ask some private question (like, ip etc..)
you can reach the server via: irc.anope.org:+6697
(this is the offical anope support server.)
join to channel #anope and scream "Lord255" :)

i will be avail in an hour or so (got to do a few things for now)
see you.
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #17 on: March 20, 2020, 09:02:37 PM »

okay so for anyone who interested:
we didnt find the solution. if a simple user connects via the bot's nick and do /ns identify, the users gets the vhost from HS, but the bot itself, does not.

a workaround was implemented though:
every time when the bot connects to the server, it executes the /hs on command.

modifications:
.irpg.conf
# (identify) command to send upon successful connect. if using a privmsg
# command, you must begin the text of the message with a ":" -- see below
botident PRIVMSG NickServ :identify <password>
bothson PRIVMSG HostServ :on


idlerpg_v3.1.2.pl
# send our identify command, set our usermode, join channel
sts($opts{botident});
sts("MODE $opts{botnick} :$opts{botmodes}");
sts($opts{bothson});
sts("JOIN $opts{botchan}");



added the purple lines to the two confs and now the bot is getting it's vhost after connect.


------------------------------------------

if anyone finds out the root cause or the real solution, feel free to add a comment. :)
Logged

Stefan

  • Anope User
  • Offline Offline
  • Posts: 9
Re: HostServ
« Reply #18 on: March 20, 2020, 09:04:22 PM »

Thanks again Lord255! :)
Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 259
    • Réseau IRC francophone
Re: HostServ
« Reply #19 on: March 20, 2020, 11:22:12 PM »

Good job guys !

genius3000

  • Anope User
  • Offline Offline
  • Posts: 37
Re: HostServ
« Reply #20 on: March 21, 2020, 02:25:57 AM »

If your IRCd uses usermode 'x' for cloaking (as InspIRCd does) I believe I see the problem:

Code: [Select]
# modes to set bot upon successful connect
botmodes +ix
...
# send our identify command, set our usermode, join channel
sts($opts{botident});
sts(&quot;MODE $opts{botnick} :$opts{botmodes}&quot;);
sts($opts{bothson});
sts(&quot;JOIN $opts{botchan}&quot;);

After identifying, the bot sets +ix, therefore the IRCd sets the vhost to the cloaked one.
Logged
-genius3000

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: HostServ
« Reply #21 on: March 21, 2020, 09:02:35 AM »

If your IRCd uses usermode 'x' for cloaking (as InspIRCd does) I believe I see the problem:

Code: [Select]
# modes to set bot upon successful connect
botmodes +ix
...
# send our identify command, set our usermode, join channel
sts($opts{botident});
sts(&quot;MODE $opts{botnick} :$opts{botmodes}&quot;);
sts($opts{bothson});
sts(&quot;JOIN $opts{botchan}&quot;);

After identifying, the bot sets +ix, therefore the IRCd sets the vhost to the cloaked one.

ow fck! you are right!
i mean it was strange, cuz when i went there inspir removed usermode "x" upon setting the vhost from HostServ.
so the bot puts that back, that's why it removed the vhost. yes.

------------
unreal does not remove usermode "x".
nice catch. :) and nice if you know how inspir handles the "x" usermode and vhosts.
Logged
Pages: [1]   Go Up