summaryrefslogtreecommitdiff
path: root/src/map/irc.h
diff options
context:
space:
mode:
authorZido <Zido@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-06 18:34:45 +0000
committerZido <Zido@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-06 18:34:45 +0000
commitf2ebcf306b3163894618b869aa676e1684db5b98 (patch)
tree0be22de68c2147f4558efd3c33417f1f6caf5807 /src/map/irc.h
parent1f598017ad21811305913f156f7ba514fc685854 (diff)
downloadhercules-f2ebcf306b3163894618b869aa676e1684db5b98.tar.gz
hercules-f2ebcf306b3163894618b869aa676e1684db5b98.tar.bz2
hercules-f2ebcf306b3163894618b869aa676e1684db5b98.tar.xz
hercules-f2ebcf306b3163894618b869aa676e1684db5b98.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5935 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/irc.h')
-rw-r--r--src/map/irc.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/map/irc.h b/src/map/irc.h
index 044aeddf9..829733c01 100644
--- a/src/map/irc.h
+++ b/src/map/irc.h
@@ -1,6 +1,14 @@
#include "map.h"
-#define MAX_ADMINS 25 // [Zido]
+// IRC Access levels [Zido]
+#define ACCESS_OWNER 5
+#define ACCESS_SOP 4
+#define ACCESS_OP 3
+#define ACCESS_HOP 2
+#define ACCESS_VOICE 1
+#define ACCESS_NORM 0
+
+#define MAX_CHANNEL_USERS 500
extern short use_irc;
@@ -27,7 +35,17 @@ struct IRC_Session_Info {
char password[33];
};
-/*struct IRC_Authed {
- char host[256];
-};*/ //(WIP, Don't remove) [Zido]
typedef struct IRC_Session_Info IRC_SI;
+
+struct channel_data {
+ struct {
+ char name[256];
+ int level;
+ }user[MAX_CHANNEL_USERS];
+};
+
+int parse_names_packet(char *str);
+int parse_names(char *str);
+int set_access(char *nick,int level);
+int get_access(char *nick);
+int parse_mode(char *mode,char *nick);