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

Pass msg color to subscriptions #615

Merged
1 commit merged into from
Oct 24, 2017
Merged

Pass msg color to subscriptions #615

1 commit merged into from
Oct 24, 2017

Conversation

ghost
Copy link

@ghost ghost commented Oct 23, 2017

closes #614

@ghost ghost self-requested a review October 23, 2017 22:12
@@ -458,17 +458,13 @@ def add_formatted_text(text, color = nil)
text << "\n"
end
if text =~ /<G>/ or color == Cosmos::GREEN
text.gsub!(/<G>/, BLANK)
Copy link
Author

Choose a reason for hiding this comment

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

I wanted to avoid changing the passed in text. Even though above we call chomp! but that seemed like a special case.

clean_lines = ''
messages = []
lines.each do |line|
if line =~ /<G>/
Copy link
Author

Choose a reason for hiding this comment

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

This is kind of duplicating the Qt routine but it's log output so ...

@coveralls
Copy link

coveralls commented Oct 23, 2017

Coverage Status

Coverage increased (+0.02%) to 81.15% when pulling a4d5073 on server_msg_color into d0ff883 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 81.15% when pulling a4d5073 on server_msg_color into d0ff883 on master.

@ghost
Copy link

ghost commented Oct 24, 2017

👍

@ghost ghost merged commit c7a2b88 into master Oct 24, 2017
@ghost ghost deleted the server_msg_color branch October 24, 2017 21:08
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass server message color to message subscriptions
2 participants