本文整理汇总了C#中IrcMessageEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# IrcMessageEventArgs类的具体用法?C# IrcMessageEventArgs怎么用?C# IrcMessageEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IrcMessageEventArgs类属于命名空间,在下文中一共展示了IrcMessageEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnNickInUse
/// <summary>
/// Raises the NickCollision event.
/// </summary>
protected internal void OnNickInUse(IrcMessageEventArgs<NickInUseMessage> e)
{
if (this.NickInUse != null)
{
this.NickInUse(this, e);
}
}
开发者ID:alfaproject,项目名称:Supay.Irc,代码行数:10,代码来源:MessageConduit.cs
示例2: ClientIsOnReply
private void ClientIsOnReply(object sender, IrcMessageEventArgs<IsOnReplyMessage> e)
{
foreach (string onlineNick in e.Message.Nicks)
{
if (this._waitingOnNicks.Contains(onlineNick))
{
this._waitingOnNicks.Remove(onlineNick);
}
User knownUser;
if (this.Contacts.Users.TryGetValue(onlineNick, out knownUser))
{
knownUser.Online = true;
}
else if (this._trackedNicks.Contains(onlineNick))
{
this._trackedNicks.Remove(onlineNick);
}
}
foreach (var offlineUser in this._waitingOnNicks.Select(nick => this.Contacts.Users[nick]))
{
offlineUser.Online = false;
}
this._waitingOnNicks.Clear();
}
开发者ID:alfaproject,项目名称:Supay.Irc,代码行数:25,代码来源:ContactsIsOnTracker.cs
示例3: OnNickCollision
/// <summary>
/// Raises the NickCollision event.
/// </summary>
protected internal void OnNickCollision(IrcMessageEventArgs<NickCollisionMessage> e)
{
if (this.NickCollision != null)
{
this.NickCollision(this, e);
}
}
开发者ID:alfaproject,项目名称:Supay.Irc,代码行数:10,代码来源:MessageConduit.cs
示例4: OnErroneusNick
/// <summary>
/// Raises the ErroneusNick event.
/// </summary>
protected internal void OnErroneusNick(IrcMessageEventArgs<ErroneusNickMessage> e)
{
if (this.ErroneusNick != null)
{
this.ErroneusNick(this, e);
}
}
开发者ID:alfaproject,项目名称:Supay.Irc,代码行数:10,代码来源:MessageConduit.cs
示例5: OnGenericErrorMessage
/// <summary>
/// Raises the GenericErrorMessage event.
/// </summary>
protected internal void OnGenericErrorMessage(IrcMessageEventArgs<GenericErrorMessage> e)
{
if (this.GenericErrorMessage != null)
{
this.GenericErrorMessage(this, e);
}
}
开发者ID:alfaproject,项目名称:Supay.Irc,代码行数:10,代码来源:MessageConduit.cs
示例6: client_IsOnReply
void client_IsOnReply( object sender, IrcMessageEventArgs<IsOnReplyMessage> e )
{
foreach ( String onlineNick in e.Message.Nicks )
{
if ( waitingOnNicks.Contains( onlineNick ) )
{
waitingOnNicks.Remove( onlineNick );
}
User knownUser = Contacts.Users.Find( onlineNick );
if ( knownUser != null && knownUser.OnlineStatus == UserOnlineStatus.Offline )
{
knownUser.OnlineStatus = UserOnlineStatus.Online;
}
if ( knownUser == null && trackedNicks.Contains( onlineNick ) )
{
trackedNicks.Remove( onlineNick );
}
}
foreach ( String nick in waitingOnNicks )
{
User offlineUser = Contacts.Users.Find( nick );
offlineUser.OnlineStatus = UserOnlineStatus.Offline;
waitingOnNicks.Remove( nick );
}
}
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:25,代码来源:ContactsIsOnTracker.cs
示例7: client_WatchedUserOnline
void client_WatchedUserOnline( object sender, IrcMessageEventArgs<WatchedUserOnlineMessage> e )
{
User knownUser = Contacts.Users.Find( e.Message.WatchedUser.Nick );
if ( knownUser != null && knownUser.OnlineStatus == UserOnlineStatus.Offline )
{
knownUser.OnlineStatus = UserOnlineStatus.Online;
}
}
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:8,代码来源:ContactsWatchTracker.cs
示例8: client_MonitoredUserOffline
void client_MonitoredUserOffline( object sender, IrcMessageEventArgs<MonitoredUserOfflineMessage> e )
{
foreach ( String offlineNick in e.Message.Nicks )
{
User knownUser = this.Contacts.Users.Find( offlineNick );
if ( knownUser != null )
{
knownUser.OnlineStatus = UserOnlineStatus.Offline;
}
}
}
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:11,代码来源:ContactsMonitorTracker.cs
示例9: ClientMonitoredUserOffline
private void ClientMonitoredUserOffline(object sender, IrcMessageEventArgs<MonitoredUserOfflineMessage> e)
{
foreach (var offlineNick in e.Message.Nicks)
{
User knownUser;
if (this.Contacts.Users.TryGetValue(offlineNick, out knownUser))
{
knownUser.Online = false;
}
}
}
开发者ID:alfaproject,项目名称:Supay.Irc,代码行数:11,代码来源:ContactsMonitorTracker.cs
示例10: ClientMonitoredUserOnline
private void ClientMonitoredUserOnline(object sender, IrcMessageEventArgs<MonitoredUserOnlineMessage> e)
{
foreach (var onlineUser in e.Message.Users.Values)
{
User knownUser;
if (this.Contacts.Users.TryGetValue(onlineUser.Nickname, out knownUser))
{
knownUser.CopyFrom(onlineUser);
knownUser.Online = true;
}
}
}
开发者ID:alfaproject,项目名称:Supay.Irc,代码行数:12,代码来源:ContactsMonitorTracker.cs
示例11: client_MonitoredUserOnline
void client_MonitoredUserOnline( object sender, IrcMessageEventArgs<MonitoredUserOnlineMessage> e )
{
foreach ( User onlineUser in e.Message.Users )
{
User knownUser = this.Contacts.Users.Find( onlineUser.Nick );
if ( knownUser != null )
{
knownUser.MergeWith( onlineUser );
if ( knownUser.OnlineStatus == UserOnlineStatus.Offline )
{
knownUser.OnlineStatus = UserOnlineStatus.Online;
}
}
}
}
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:15,代码来源:ContactsMonitorTracker.cs
示例12: IrcClient_LocalUser_MessageReceived
private void IrcClient_LocalUser_MessageReceived(object sender, IrcMessageEventArgs e)
{
var localUser = (IrcLocalUser)sender;
if (e.Source is IrcUser)
{
// Read message and process if it is chat command.
if (ReadChatCommand(localUser.Client, e))
return;
}
OnLocalUserMessageReceived(localUser, e);
}
开发者ID:djeebus,项目名称:MusicHub,代码行数:13,代码来源:IrcBot.cs
示例13: IrcClient_Channel_NoticeReceived
private void IrcClient_Channel_NoticeReceived(object sender, IrcMessageEventArgs e)
{
var channel = (IrcChannel)sender;
OnChannelNoticeReceived(channel, e);
}
开发者ID:djeebus,项目名称:MusicHub,代码行数:6,代码来源:IrcBot.cs
示例14: IrcClient_Channel_MessageReceived
private void IrcClient_Channel_MessageReceived(object sender, IrcMessageEventArgs e)
{
var channel = (IrcChannel)sender;
if (e.Source is IrcUser)
{
// Read message and process if it is chat command.
if (ReadChatCommand(channel.Client, e))
return;
}
OnChannelMessageReceived(channel, e);
}
开发者ID:djeebus,项目名称:MusicHub,代码行数:13,代码来源:IrcBot.cs
示例15: OnLocalUserNoticeReceived
protected abstract void OnLocalUserNoticeReceived(IrcLocalUser localUser, IrcMessageEventArgs e);
开发者ID:djeebus,项目名称:MusicHub,代码行数:1,代码来源:IrcBot.cs
示例16: OnChannelNoticeReceived
protected abstract void OnChannelNoticeReceived(IrcChannel channel, IrcMessageEventArgs e);
开发者ID:djeebus,项目名称:MusicHub,代码行数:1,代码来源:IrcBot.cs
示例17: routeTopicSets
private void routeTopicSets( Object sender, IrcMessageEventArgs<TopicSetReplyMessage> e )
{
Client source = sender as Client;
if ( source == null )
{
return;
}
Channel channel = this.Channels[source].FindChannel( e.Message.Channel );
if ( channel != null )
{
User topicSetter = this.Users[source].EnsureUser( e.Message.User );
channel.TopicSetter = topicSetter;
channel.TopicSetTime = e.Message.TimeSet;
}
}
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:16,代码来源:ClientManager.cs
示例18: welcomed
private void welcomed( Object sender, IrcMessageEventArgs<WelcomeMessage> e )
{
General.client.SendJoin("#devatan");
textBox1.Text += "Connecting to channel..." + Environment.NewLine;
General.client.DefaultQuitMessage = "DevAtan IRC - DevAtan Official Chat Application";
}
开发者ID:tomsoftmedia,项目名称:DevAtan-IRC,代码行数:6,代码来源:Form1.cs
示例19: ircClient2_LocalUser_MessageSent
private static void ircClient2_LocalUser_MessageSent(object sender, IrcMessageEventArgs e)
{
if (client2LocalUserMessageSentEvent != null)
client2LocalUserMessageSentEvent.Set();
}
开发者ID:GJiin,项目名称:meridian59-dotnet,代码行数:5,代码来源:IrcClientTestSet.cs
示例20: routeQuits
private void routeQuits( Object sender, IrcMessageEventArgs<QuitMessage> e )
{
Client source = sender as Client;
if ( source == null )
{
return;
}
String nick = e.Message.Sender.Nick;
if ( IsMe( nick, source ) )
{
foreach ( Channel c in this.Channels[source] )
{
c.Open = false;
}
}
else
{
foreach ( Channel channel in this.Channels[source] )
{
channel.Users.RemoveFirst( nick );
}
}
}
开发者ID:WhiteCoreSim,项目名称:WhiteCore-Optional-Modules,代码行数:24,代码来源:ClientManager.cs
注:本文中的IrcMessageEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论