This repository was archived by the owner on Sep 29, 2020. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ public IRC(dynamic config, Session session)
50
50
AutoRejoinOnKick = true
51
51
} ;
52
52
53
- ircClient . OnConnected += OnConnected ;
54
- ircClient . OnError += this . OnError ;
53
+ ircClient . OnConnected += this . OnConnected ;
54
+ ircClient . OnDisconnected += this . OnDisconnected ;
55
55
ircClient . OnChannelMessage += this . OnChannelMessage ;
56
56
}
57
57
@@ -85,13 +85,13 @@ private void OnConnected(object sender, EventArgs e)
85
85
Discord . Log ( new LogMessage ( LogSeverity . Critical , "IRCSpawn" , "IRC bot initalized." ) ) ;
86
86
}
87
87
88
- private void OnError ( object sender , ErrorEventArgs e )
88
+ private void OnDisconnected ( object sender , EventArgs e )
89
89
{
90
90
/* Create a new thread to kill the session. We cannot block
91
91
* this Disconnect call */
92
92
new Thread ( async ( ) => await session . Kill ( Session . TargetBot . Both ) ) . Start ( ) ;
93
93
94
- Discord . Log ( new LogMessage ( LogSeverity . Critical , "IRCOnError" , e . ErrorMessage ) ) ;
94
+ Discord . Log ( new LogMessage ( LogSeverity . Critical , "IRCOnError" , "Irc Disconnected" ) ) ;
95
95
}
96
96
97
97
private void OnChannelMessage ( object sender , IrcEventArgs e )
You can’t perform that action at this time.
0 commit comments