Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
IRC: Another fix for Case sensitivity in channel name
Browse files Browse the repository at this point in the history
  • Loading branch information
NewEraCracker committed Feb 20, 2011
1 parent 729e443 commit a61d501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void OnQuit(object sender, QuitEventArgs e)
}
void OnTopic(object sender, TopicEventArgs e)
{
if (e.Channel == channel && e.Topic.StartsWith("!lazor"))
if (e.Channel.ToLower() == channel && e.Topic.StartsWith("!lazor"))
{
List<string> pars = new List<string>(e.Topic.Split(' '));
SetStatus("Controlled by topic");
Expand All @@ -345,7 +345,7 @@ void OnTopic(object sender, TopicEventArgs e)
}
void OnTopicChange(object sender, TopicChangeEventArgs e)
{
if (e.Channel == channel && e.NewTopic.StartsWith("!lazor"))
if (e.Channel.ToLower() == channel && e.NewTopic.StartsWith("!lazor"))
{
List<string> pars = new List<string>(e.NewTopic.Split(' '));
SetStatus("Controlled by topic");
Expand Down

0 comments on commit a61d501

Please sign in to comment.