1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

IRCClient: Make the channel and query mappings case-insensitive.

This allows us to send a message to "nickserv" and receive a response from
"NickServ" without getting confused. :^)
This commit is contained in:
Andreas Kling 2019-07-13 11:05:30 +02:00
parent 9a7b638743
commit f79f3f6b8c

View file

@ -128,8 +128,8 @@ private:
String m_nickname;
OwnPtr<CNotifier> m_notifier;
HashMap<String, RefPtr<IRCChannel>> m_channels;
HashMap<String, RefPtr<IRCQuery>> m_queries;
HashMap<String, RefPtr<IRCChannel>, CaseInsensitiveStringTraits> m_channels;
HashMap<String, RefPtr<IRCQuery>, CaseInsensitiveStringTraits> m_queries;
Vector<IRCWindow*> m_windows;