summaryrefslogtreecommitdiff
path: root/src/map/irc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 15:50:41 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 15:50:41 +0000
commitb9804183841afd5381069796096a154edb5b9f53 (patch)
tree95e6f70d9ecd43e727d0defe1b02a818bc191169 /src/map/irc.c
parent3bd682b3cb3507c8a57fa6930475808981fd0663 (diff)
downloadhercules-b9804183841afd5381069796096a154edb5b9f53.tar.gz
hercules-b9804183841afd5381069796096a154edb5b9f53.tar.bz2
hercules-b9804183841afd5381069796096a154edb5b9f53.tar.xz
hercules-b9804183841afd5381069796096a154edb5b9f53.zip
Reformatting @_@
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10581 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/irc.c')
-rw-r--r--src/map/irc.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/map/irc.c b/src/map/irc.c
index 1dab39903..7e72b3ea4 100644
--- a/src/map/irc.c
+++ b/src/map/irc.c
@@ -366,7 +366,8 @@ void do_init_irc(void)
}
//NAMES Packet(353) parser [Zido]
-int parse_names_packet(char *str) {
+int parse_names_packet(char *str)
+{
char *tok;
char source[256];
char numeric[10];
@@ -395,7 +396,8 @@ int parse_names_packet(char *str) {
}
//User access level prefix parser [Zido]
-int parse_names(char *str) {
+int parse_names(char *str)
+{
char *tok;
if (str == NULL) return 0; //Nothing to parse!
tok=strtok(str," ");
@@ -447,7 +449,8 @@ int parse_names(char *str) {
}
//Store user's access level [Zido]
-int set_access(char *nick,int newlevel) {
+int set_access(char *nick,int newlevel)
+{
int i=0;
for(i=0;i<=MAX_CHANNEL_USERS;i++) {
@@ -465,7 +468,8 @@ int set_access(char *nick,int newlevel) {
}
//Returns users access level [Zido]
-int get_access(char *nick) {
+int get_access(char *nick)
+{
int i=0;
for(i=0;i<=MAX_CHANNEL_USERS;i++) {
@@ -477,7 +481,8 @@ int get_access(char *nick) {
return -1;
}
-int irc_rmnames() {
+int irc_rmnames()
+{
int i=0;
for(i=0;i<=MAX_CHANNEL_USERS;i++) {
@@ -491,7 +496,8 @@ int irc_rmnames() {
return 0;
}
-int irc_read_conf(char *file) {
+int irc_read_conf(char *file)
+{
FILE *fp=NULL;
char w1[256];
char w2[256];