Beispiel #1
0
 private void Listener_OnPublic(object sender, UserChannelMessageEventArgs ea)
 {
     ChannelMessaged.Fire(this, new ChannelMessageEventArgs(ea.User, _channels[ea.Channel], ea.Message));
     _channels[ea.Channel].OnNewMessage(ea.User, ea.Message);
 }
Beispiel #2
0
 private void Listener_OnAction(object sender, UserChannelMessageEventArgs ea)
 {
     var chan = CreateChannel(ea.Channel);
     UserAction.Fire(this, new ChannelMessageEventArgs(ea.User, chan, ea.Message));
     chan.OnNewAction(ea.User, ea.Message);
 }