コード例 #1
0
ファイル: Part.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Parts the specified channel with the specified message
 /// </summary>
 /// <param name="context"></param>
 /// <param name="channel"></param>
 /// <param name="message"></param>
 public void Execute(Server context, ChannelInfo channel, string message)
 {
     if (context.InChannel(channel.Name))
     {
         context.Channels[channel.Name].Part(message);
     }
     else
     {
         //TODO: Error?
     }
 }
コード例 #2
0
ファイル: Part.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Parts the specified channel
 /// </summary>
 /// <param name="context"></param>
 /// <param name="channel"></param>
 public void Execute(PrivateMessageSession context, ChannelInfo channel)
 {
     Execute(context.Server, channel, defaultMessage);
 }
コード例 #3
0
ファイル: Part.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Parts the specified channel
 /// </summary>
 /// <param name="context"></param>
 /// <param name="channel"></param>
 public void Execute(Server context, ChannelInfo channel)
 {
     Execute(context, channel, defaultMessage);
 }
コード例 #4
0
ファイル: Part.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Parts the specified channel with the specified message
 /// </summary>
 /// <param name="context"></param>
 /// <param name="channel"></param>
 /// <param name="message"></param>
 public void Execute(Channel context, ChannelInfo channel, string message)
 {
     Execute(context.Server, channel, message);
 }
コード例 #5
0
ファイル: Part.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Parts the specified channel with the specified message
 /// </summary>
 /// <param name="context"></param>
 /// <param name="channel"></param>
 /// <param name="message"></param>
 public void Execute(PrivateMessageSession context, ChannelInfo channel, string message)
 {
     Execute(context.Server, channel, message);
 }
コード例 #6
0
ファイル: Join.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Joins you to the specified channel.
 /// </summary>
 public void Execute(PrivateMessageSession context, ChannelInfo channelToJoin)
 {
     Execute(context.Server, channelToJoin);
 }
コード例 #7
0
ファイル: Join.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Joins you to the specified channel.
 /// </summary>
 public void Execute(Server context, ChannelInfo channelToJoin)
 {
     context.JoinChannel(channelToJoin.Name);
 }
コード例 #8
0
ファイル: Join.cs プロジェクト: nerdshark/mutinyirc
 /// <summary>
 /// Joins you to the specified channel.
 /// </summary>
 public void Execute(Channel context, ChannelInfo channelToJoin)
 {
     Execute(context.Server, channelToJoin);
 }