-
Notifications
You must be signed in to change notification settings - Fork 174
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
Conversation
There was a problem hiding this 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
plugins/Status/plugin.py
Outdated
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]} " | ||
) |
There was a problem hiding this comment.
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.
plugins/Status/plugin.py
Outdated
f"Voiced: {voice_counts[network_name]}, Regular: {normal_counts[network_name]} " | ||
) | ||
|
||
irc.reply("".join(response_lines)) |
There was a problem hiding this comment.
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
plugins/Status/plugin.py
Outdated
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.')) |
There was a problem hiding this comment.
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
Is this more or less what you meant? If not, what would be the desired format for the output? |
thanks! |
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.