From 843fca24a0c09666d384c3e457f19ec89e25985d Mon Sep 17 00:00:00 2001
From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org>
Date: Mon, 13 Nov 2000 15:07:58 +0100
Subject: [PATCH] added Person and Channel types to IRC

Rev: lib/modules/Protocols.pmod/IRC.pmod/module.pmod:1.1
---
 .../Protocols.pmod/IRC.pmod/module.pmod       | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 lib/modules/Protocols.pmod/IRC.pmod/module.pmod

diff --git a/lib/modules/Protocols.pmod/IRC.pmod/module.pmod b/lib/modules/Protocols.pmod/IRC.pmod/module.pmod
new file mode 100644
index 0000000000..7c68e7b9a5
--- /dev/null
+++ b/lib/modules/Protocols.pmod/IRC.pmod/module.pmod
@@ -0,0 +1,31 @@
+// base classes
+
+class Person
+{
+   string nick; // Mirar
+   string user; // mirar
+   string ip;   // mistel.idonex.se
+   int last_action; // time_t
+   multiset aka=(<>);
+   string realname="?";
+   string server=0;
+
+   mapping misc=([]);
+   multiset channels=(<>);
+
+   void say(string message);
+   void notice(string message);
+   void me(string what);
+}
+
+class Channel
+{
+   string name;
+
+   void	not_message(Person who,string message);
+   void	not_join(Person who);
+   void	not_part(Person who,string message,Person executor);
+   void	not_mode(Person who,string mode);
+   void	not_failed_to_join();
+}
+
-- 
GitLab