aboutsummaryrefslogtreecommitdiff
path: root/src/espik_irc.c
diff options
context:
space:
mode:
authorbeber <beber>2005-10-08 23:01:20 +0000
committerbeber <beber>2005-10-08 23:01:20 +0000
commitc88380f0262b674568de9d862db81e01e2050178 (patch)
tree942f595748f09683f5cecfa3bd42dc6990e54c2e /src/espik_irc.c
parentMove definitely to espik_global.h (diff)
downloadespik-c88380f0262b674568de9d862db81e01e2050178.tar.xz
Add a file to get serveur error response
Make /nick work Start a espik_config struct
Diffstat (limited to 'src/espik_irc.c')
-rw-r--r--src/espik_irc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/espik_irc.c b/src/espik_irc.c
index 5af50bc..c049694 100644
--- a/src/espik_irc.c
+++ b/src/espik_irc.c
@@ -59,6 +59,7 @@ void string_upper (char *str)
if (str[i] >= 0x61 && str[i] <= 0x7A)
str[i] -= 0x20;
}
+ printf("string_upper: %s\n", str);
}
unsigned short sendmsg_len (char* msg)
@@ -168,16 +169,16 @@ char* irc_nick (char* chan __UNUSED__, char* nick)
char* out;
int len;
- len = strlen ("NICK") + 2
+ len = strlen ("NICK") + 1
+ strlen (nick) + 1;
out = malloc (sizeof (char*) * len);
- snprintf (out, len, "NICK :%s", nick);
+ snprintf (out, len, "NICK %s", nick);
printf ("NICK CHANGED REQUEST: %s\n", nick);
- return (nick);
+ return (out);
}
/*