Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store real IRC server name #1532

Closed
deathbybandaid opened this issue Apr 1, 2019 · 5 comments · Fixed by #1769
Closed

Store real IRC server name #1532

deathbybandaid opened this issue Apr 1, 2019 · 5 comments · Fixed by #1769

Comments

@deathbybandaid
Copy link
Contributor

I think it is prudent to have a concise location of all things server related.

Servername would be nice to have. If a bot is connected to a bouncer like ZNC, reading the value in the config file isn't super helpful.

@dgw dgw changed the title Servername Store real IRC server name Apr 1, 2019
@dgw
Copy link
Member

dgw commented Apr 1, 2019

Is it more useful to have the server's hostname (like asimov.freenode.net) or the network name (meaning freenode)?

Both? It couldn't hurt to store both, I guess.

@deathbybandaid
Copy link
Contributor Author

both would be super handy

@dgw
Copy link
Member

dgw commented Apr 1, 2019

OK, both. That didn't take much convincing.

You proposed bot.server to hold this stuff on IRC. Running with that, bot.server.network (from RPL_ISUPPORT / numeric 005, ref: #1082) and bot.server.hostname?

@deathbybandaid
Copy link
Contributor Author

I like it,,, might also be a cleaner place to store bot.server.capabilities than bot.server_capabilites

@dgw
Copy link
Member

dgw commented Apr 1, 2019

Could also make sense to use bot.network, but we can bikeshed the names later lol.

HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
Selectively exposes parameters from sopel-irc#1082. Attempts to access parameters
outside of those (whether actually present or not), will issue a
`RuntimeWarning`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
Selectively exposes parameters from sopel-irc#1082. Attempts to access parameters
outside of those (whether actually present or not), will issue a
`RuntimeWarning`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
Selectively exposes parameters from sopel-irc#1082. Attempts to access parameters
outside of those (whether actually present or not), will issue a
`RuntimeWarning`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 2, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 18, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 18, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
HumorBaby added a commit to HumorBaby/sopel that referenced this issue Apr 23, 2019
`ISUPPORT` parameters can be accessed as `bot.server...`, e.g.,
`bot.server.NAMESX`.

This closes sopel-irc#1082 and closes sopel-irc#1532.
@dgw dgw closed this as completed in #1769 Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants