#include "portab.h"
-static char UNUSED id[] = "$Id: parse.c,v 1.52 2002/12/18 13:53:20 alex Exp $";
+static char UNUSED id[] = "$Id: parse.c,v 1.56 2002/12/31 16:11:24 alex Exp $";
#include "imp.h"
#include <assert.h>
#include "ngircd.h"
#include "defines.h"
-#include "conn.h"
+#include "conn-func.h"
#include "client.h"
#include "channel.h"
#include "log.h"
{ "AWAY", IRC_AWAY, CLIENT_USER, 0, 0, 0 },
{ "CONNECT", IRC_CONNECT, CLIENT_USER, 0, 0, 0 },
{ "DIE", IRC_DIE, CLIENT_USER, 0, 0, 0 },
+ { "DISCONNECT", IRC_DISCONNECT, CLIENT_USER, 0, 0, 0 },
{ "ERROR", IRC_ERROR, 0xFFFF, 0, 0, 0 },
{ "INVITE", IRC_INVITE, CLIENT_USER|CLIENT_SERVER, 0, 0, 0 },
{ "ISON", IRC_ISON, CLIENT_USER, 0, 0, 0 },
}
/* Statuscode weiterleiten */
- strcpy( str, Req->command );
+ strlcpy( str, Req->command, sizeof( str ));
for( i = 0; i < Req->argc; i++ )
{
- if( i < Req->argc - 1 ) strcat( str, " " );
- else strcat( str, " :" );
- strcat( str, Req->argv[i] );
+ if( i < Req->argc - 1 ) strlcat( str, " ", sizeof( str ));
+ else strlcat( str, " :", sizeof( str ));
+ strlcat( str, Req->argv[i], sizeof( str ));
}
return IRC_WriteStrClientPrefix( target, prefix, "%s", str );
}