aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/espik_common_handler.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/espik_common_handler.c b/src/espik_common_handler.c
index 087fa73..f20c9a7 100644
--- a/src/espik_common_handler.c
+++ b/src/espik_common_handler.c
@@ -31,15 +31,7 @@ int server_data (void* data __UNUSED__, int ev_type __UNUSED__,
if (! (strcmp (msg, "PING")))
{
- char* pong;
- int len;
-
- len = 10 /* "/raw PONG " */
- + strlen ("guybrush.melee");
-
- pong = malloc (sizeof(char) * len);
- snprintf (pong, len, "/raw PONG guybrush.melee");
- irc_send(pong);
+ espik_raw_send ("PONG guybrush.melee");
}
return (0);