Exemplo n.º 1
0
 public SpamBlocker(PubComb plug)
 {
     plugin     = plug;
     shared     = plug.SharedInfo;
     form       = new SpamBlockForm1(this);
     this.frame = plug.frame;
     this.proxy = plug.proxy;
     this.proxy.AddDelegate(PacketType.ChangeUserRights, Direction.Incoming, new PacketDelegate(this.UserRights));
     this.proxy.AddDelegate(PacketType.ImprovedInstantMessage, Direction.Incoming, new PacketDelegate(this.InIM));
     this.proxy.AddDelegate(PacketType.ScriptDialog, Direction.Incoming, new PacketDelegate(this.Dialogs));
     this.proxy.AddDelegate(PacketType.SoundTrigger, Direction.Incoming, new PacketDelegate(this.InTSound));
     this.proxy.AddDelegate(PacketType.AttachedSound, Direction.Incoming, new PacketDelegate(this.InASound));
     this.proxy.AddDelegate(PacketType.ScriptTeleportRequest, Direction.Incoming, new PacketDelegate(this.InMap));
 }
Exemplo n.º 2
0
 public SpamBlocker(PubComb plug)
 {
     plugin = plug;
     shared = plug.SharedInfo;
     form = new SpamBlockForm1(this);
     this.frame = plug.frame;
     this.proxy = plug.proxy;
     this.proxy.AddDelegate(PacketType.ChangeUserRights, Direction.Incoming, new PacketDelegate(this.UserRights));
     this.proxy.AddDelegate(PacketType.ImprovedInstantMessage, Direction.Incoming, new PacketDelegate(this.InIM));
     this.proxy.AddDelegate(PacketType.ScriptDialog, Direction.Incoming, new PacketDelegate(this.Dialogs));
     this.proxy.AddDelegate(PacketType.SoundTrigger, Direction.Incoming, new PacketDelegate(this.InTSound));
     this.proxy.AddDelegate(PacketType.AttachedSound, Direction.Incoming, new PacketDelegate(this.InASound));
     this.proxy.AddDelegate(PacketType.ScriptTeleportRequest, Direction.Incoming, new PacketDelegate(this.InMap));
 }