From b4f94985251f2922ddaa427436fa19fa111daaab Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 20 Apr 2005 20:03:49 +0000 Subject: [PATCH] Added USER and QUIT messages --- mbtask/taskchat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mbtask/taskchat.c b/mbtask/taskchat.c index 5d3c184a..07fe48a6 100644 --- a/mbtask/taskchat.c +++ b/mbtask/taskchat.c @@ -436,7 +436,7 @@ char *chat_connect(char *data) * Register with IBC */ add_user(CFG.myfqdn, nick, realname); - sprintf(buf, "USER %s@%s 0 * :%s", nick, CFG.myfqdn, realname); + sprintf(buf, "USER %s@%s %s", nick, CFG.myfqdn, realname); send_all(buf); #endif @@ -487,6 +487,8 @@ char *chat_close(char *data) */ #ifdef USE_EXPERIMENT del_user(CFG.myfqdn, chat_users[i].realname); + sprintf(buf, "QUIT %s@%s Leaving chat", chat_users[i].nick, CFG.myfqdn); + send_all(buf); #endif Syslog('-', "Closing chat for pid %s, slot %d", pid, i); memset(&chat_users[i], 0, sizeof(_chat_users));