SendNotice() публичный Метод

A message target may be an IrcUser, IrcChannel, or IrcTargetMask.
public SendNotice ( IEnumerable targets, string text ) : void
targets IEnumerable A collection of targets to which to send the notice.
text string
Результат void
 public static void SendNotice(this IrcLocalUser localUser, IList <IIrcMessageTarget> targets, string format,
                               params object[] args)
 {
     localUser.SendNotice(targets, string.Format(format, args));
 }
 private void SendGreeting(IrcLocalUser localUser, IIrcMessageTarget target)
 {
     localUser.SendNotice(target, "This is the {0}, welcome.", ProgramInfo.AssemblyTitle);
     localUser.SendNotice(target, "Message me with '.help' for instructions on how to use me.");
     localUser.SendNotice(target, "Remember to log in via a private message and not via the channel.");
 }
Пример #3
0
 private void SendGreeting(IrcLocalUser localUser, IIrcMessageTarget target)
 {
     localUser.SendNotice(target, "This is the {0}, welcome.", ProgramInfo.AssemblyTitle);
     localUser.SendNotice(target, "Message me with '.help' for instructions on how to use me.");
     localUser.SendNotice(target, "Remember to log in via a private message and not via the channel.");
 }