public UserNickChangeEvent(User user, string oldnick, string newnick) : base(user) { this.user = user; this.oldnick = oldnick; this.newnick = newnick; }
public void registerClient(User client) { if (moduleClient == null) { this.moduleClient = client; } }
public bool containsUser(User user) { if (Users.ContainsValue(user)) { return true; } return false; }
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); }
public virtual void killUser(Client killer, User killee, string reason = null) { }
public virtual void killUser(User killee, string reason = null) { }
public virtual void kickUser(Client kicker, User kickee, Channel channel, string reason = null) { }
public UserEvent(User user) { this.user = user; }
public ChannelMessageEvent(User user, string message, Channel channel) { this.message = message; this.channel = channel; }
public virtual void chanMode(Client sender, Channel channel, User dest, string modes) { }
public void messageUser(User user, string message = "hi") { Protocol.protocolPlugin.msgUser(this, user, message); }
public void kill(User killee, string reason = "Killed by dreamskape") { //client kill user //problem? Protocol.protocolPlugin.killUser(this, killee, reason); }
public void kickUser(User kickee, Channel chan, string reason = "Kicked by dreamskape") { Protocol.protocolPlugin.kickUser(this, kickee, chan, reason); }
public void addToChannel(User user) { Users.Add(user.UID, user); }
public virtual void noticeUser(Client sender, User sendee, string message) { }
public virtual void serverchanMode(Channel channel, User dest, string modes) { }
public void modeChannel(Channel channel, User dest, string mode) { Protocol.protocolPlugin.chanMode(this, channel, dest, mode); }
public void noticeUser(User user, string message = "hi") { Console.WriteLine(this.UID); Console.WriteLine(user.UID); Protocol.protocolPlugin.noticeUser(this, user, message); }
public void servermodeChannel(Channel channel, User dest, string mode) { Protocol.protocolPlugin.serverchanMode(channel, dest, mode); }
public KillEvent(User killer, User killee, string reason) { this.killer = killer; this.killee = killee; this.reason = reason; }
public virtual void joinUser(User joinee, Channel channel) { }
public bool ContainsUser(User user) { return channel.containsUser(user); }
public UserConnectEvent(User user) : base(user) { }