-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdiIRCPlugin.cs
38 lines (33 loc) · 1.08 KB
/
AdiIRCPlugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using AdiIRCAPI;
namespace AdiIRC_Encrypt {
public class AdiIRCPlugin : IPlugin {
private string name = "AdiIRC Encrypt";
private string description = "Adds encrpytion to private messages using Ellipic Curve Encryption and Salsa20";
private string author = "Dave Akers";
private string version = typeof(AdiIRCPlugin).Assembly.GetName().Version.ToString();
private string email = "[email protected]";
private IPluginHost host;
private ITools tools;
public string Name { get { return name; } }
public string Description { get { return description; } }
public string Author { get { return author; } }
public string Version { get { return version; } }
public string Email { get { return email; } }
public IPluginHost Host {
get { return host; }
set { host = value; }
}
public ITools Tools {
get { return tools; }
set { tools = value; }
}
private PMEncrypt pmEncrypt;
public void Initialize() {
pmEncrypt = new PMEncrypt(host, tools);
}
public void Dispose() {
pmEncrypt.Dispose();
}
}
}