Example #1
0
 public void registerClient(User client)
 {
     if (moduleClient == null)
     {
         this.moduleClient = client;
     }
 }
Example #2
0
 public UserNickChangeEvent(User user, string oldnick, string newnick)
     : base(user)
 {
     this.user = user;
     this.oldnick = oldnick;
     this.newnick = newnick;
 }
Example #3
0
 public bool containsUser(User user)
 {
     if (Users.ContainsValue(user))
     {
         return true;
     }
     return false;
 }
Example #4
0
 public void removeFromChannel(User user)
 {
     if (Users.ContainsValue(user))
     {
         Users.Remove(user.UID);
         return;
     }
     Console.WriteLine("Attempted to remove non-existant user from channel " + this.name);
 }
Example #5
0
 public virtual void killUser(Client killer, User killee, string reason = null)
 {
 }
Example #6
0
 public virtual void killUser(User killee, string reason = null)
 {
 }
Example #7
0
 public virtual void kickUser(Client kicker, User kickee, Channel channel, string reason = null)
 {
 }
Example #8
0
 public void addToChannel(User user)
 {
     Users.Add(user.UID, user);
 }
Example #9
0
 public UserConnectEvent(User user)
     : base(user)
 {
 }
Example #10
0
 public virtual void chanMode(Client sender, Channel channel, User dest, string modes)
 {
 }
Example #11
0
 public void noticeUser(User user, string message = "hi")
 {
     Console.WriteLine(this.UID);
     Console.WriteLine(user.UID);
     Protocol.protocolPlugin.noticeUser(this, user, message);
 }
Example #12
0
 public void modeChannel(Channel channel, User dest, string mode)
 {
     Protocol.protocolPlugin.chanMode(this, channel, dest, mode);
 }
Example #13
0
 public void messageUser(User user, string message = "hi")
 {
     Protocol.protocolPlugin.msgUser(this, user, message);
 }
Example #14
0
 public void kill(User killee, string reason = "Killed by dreamskape")
 {
     //client kill user
     //problem?
     Protocol.protocolPlugin.killUser(this, killee, reason);
 }
Example #15
0
 public void kickUser(User kickee, Channel chan, string reason = "Kicked by dreamskape")
 {
     Protocol.protocolPlugin.kickUser(this, kickee, chan, reason);
 }
Example #16
0
 public virtual void noticeUser(Client sender, User sendee, string message)
 {
 }
Example #17
0
 public virtual void serverchanMode(Channel channel, User dest, string modes)
 {
 }
Example #18
0
 public void servermodeChannel(Channel channel, User dest, string mode)
 {
     Protocol.protocolPlugin.serverchanMode(channel, dest, mode);
 }
Example #19
0
 public KillEvent(User killer, User killee, string reason)
 {
     this.killer = killer;
     this.killee = killee;
     this.reason = reason;
 }
Example #20
0
 public ChannelMessageEvent(User user, string message, Channel channel)
 {
     this.message = message;
     this.channel = channel;
 }
Example #21
0
 public UserMessageEvent(User sender, User sendee, string message)
 {
     this.message = message;
     this.sender = sender;
     this.sendee = sendee;
 }
Example #22
0
 public bool ContainsUser(User user)
 {
     return channel.containsUser(user);
 }
Example #23
0
 public UserEvent(User user)
 {
     this.user = user;
 }
Example #24
0
 public virtual void joinUser(User joinee, Channel channel)
 {
 }