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
Notes: sideshowbarker 2024-07-19 13:18:24 +09:00

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;