mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
IRCClient+LibGUI: Add an input box so we can send messages to channels.
Implement this using a GTextEditor with a special single-line mode. This new mode needs some polishing, but it's already very useful.
This commit is contained in:
parent
ad08165a25
commit
1fc283ed7d
12 changed files with 126 additions and 23 deletions
|
@ -40,8 +40,13 @@ void IRCChannel::add_message(char prefix, const String& name, const String& text
|
|||
void IRCChannel::dump() const
|
||||
{
|
||||
printf("IRCChannel{%p}: %s\n", this, m_name.characters());
|
||||
for (auto& member : m_members) {
|
||||
for (auto& member : m_members)
|
||||
printf(" (%c)%s\n", member.prefix ? member.prefix : ' ', member.name.characters());
|
||||
}
|
||||
log().dump();
|
||||
}
|
||||
|
||||
void IRCChannel::say(const String& text)
|
||||
{
|
||||
m_client.send_privmsg(m_name, text);
|
||||
add_message(' ', m_client.nickname(), text);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue