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

report channel counts and modes in status #1562

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Conversation

matiasw
Copy link
Contributor

@matiasw matiasw commented Oct 5, 2023

See #1183

If accepted, could you please add the hacktoberfest-accepted label? I understand you do not want your repository to participate, but this PR still can.

Copy link
Owner

@progval progval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If accepted, could you please add the hacktoberfest-accepted label?

Sure, that's a good contribution

Comment on lines 116 to 120
response_lines.append(
f"I am connected to {network_name} as {nicks[network_name]}, Channels: {channel_counts[network_name]}, "
f"Ops: {op_counts[network_name]}, Half-Ops: {halfop_counts[network_name]}, "
f"Voiced: {voice_counts[network_name]}, Regular: {normal_counts[network_name]} "
)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the _() wrapper and %s substitution so it's translatable.

f"Voiced: {voice_counts[network_name]}, Regular: {normal_counts[network_name]} "
)

irc.reply("".join(response_lines))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep %L formatting so items are joined according to the config and locale

if world.profiling:
L.append(_('I am currently in code profiling mode.'))
irc.reply(' '.join(L))
irc.reply(_('I am currently in code profiling mode.'))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And keep this in the list, so it does not send it as an independent message

@matiasw
Copy link
Contributor Author

matiasw commented Oct 5, 2023

Is this more or less what you meant? If not, what would be the desired format for the output?

@progval
Copy link
Owner

progval commented Oct 5, 2023

thanks!

@progval progval merged commit 5ccc035 into progval:testing Oct 5, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants