* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: irc-server.c,v 1.11 2002/05/30 16:52:21 alex Exp $
+ * $Id: irc-server.c,v 1.14 2002/08/26 23:47:58 alex Exp $
*
* irc-server.c: IRC-Befehle fuer Server-Links
*/
GLOBAL BOOLEAN
IRC_NJOIN( CLIENT *Client, REQUEST *Req )
{
- CHAR *channame, *ptr, modes[8];
+ CHAR str[COMMAND_LEN], *channame, *ptr, modes[8];
BOOLEAN is_op, is_voiced;
CHANNEL *chan;
CLIENT *c;
/* Falsche Anzahl Parameter? */
if( Req->argc != 2 ) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
+ strncpy( str, Req->argv[1], COMMAND_LEN - 1 );
+ str[COMMAND_LEN - 1] = '\0';
+
channame = Req->argv[0];
- ptr = strtok( Req->argv[1], "," );
+ ptr = strtok( str, "," );
while( ptr )
{
is_op = is_voiced = FALSE;