diff options
author | beber <beber> | 2005-10-08 22:35:53 +0000 |
---|---|---|
committer | beber <beber> | 2005-10-08 22:35:53 +0000 |
commit | 425c49731be282bd126fb933da09a2677095be18 (patch) | |
tree | a2742a2a30ddcd0064c662a1fddb223208031ca3 /src/espik_irc.c | |
parent | really fuck them (diff) | |
download | espik-425c49731be282bd126fb933da09a2677095be18.tar.xz |
add /nick
move global.h -> espik_global.h
Diffstat (limited to 'src/espik_irc.c')
-rw-r--r-- | src/espik_irc.c | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/src/espik_irc.c b/src/espik_irc.c index 84208f0..e26359f 100644 --- a/src/espik_irc.c +++ b/src/espik_irc.c @@ -21,13 +21,14 @@ typedef struct } cmd_t; cmd_t cmd_tab[] = { - {"JOIN", irc_join}, - {"PART", irc_part}, - {"PRIVMSG", irc_privmsg}, - {"QUIT", irc_quit}, - {"RAW", irc_raw}, -/* {"ACTION", irc_action}, */ - {0, 0} + { "JOIN", irc_join }, + { "PART", irc_part }, + { "PRIVMSG", irc_privmsg }, + { "QUIT", irc_quit }, + { "RAW", irc_raw }, + { "NICK", irc_nick }, +/* { "ACTION", irc_action }, */ + { 0, 0 } }; char** separate_commandline (char *msg) @@ -162,6 +163,21 @@ char* irc_raw (char* chan __UNUSED__, char* msg) return (msg); } +char* irc_nick (char* chan __UNUSED__, char* nick) +{ + char* out; + int len; + + len = strlen ("NICK") + 2 + + strlen (nick) + 1; + + out = malloc (sizeof (char*) * len); + + snprintf (out, len, "NICK :%s", nick); + + printf ("NICK CHANGED REQUEST: %s\n", nick); +} + /* Ecore_Con_Server* irc_connect (char* host __UNUSED__, int port __UNUSED__) { |