- strlcpy( rpl, RPL_ISON_MSG, sizeof rpl );
- for( i = 0; i < Req->argc; i++ )
- {
- ptr = strtok( Req->argv[i], " " );
- while( ptr )
- {
- ngt_TrimStr( ptr );
- c = Client_Search( ptr );
- if( c && ( Client_Type( c ) == CLIENT_USER ))
- {
- /* Dieser Nick ist "online" */
- strlcat( rpl, ptr, sizeof( rpl ));
- strlcat( rpl, " ", sizeof( rpl ));
+ strlcpy(rpl, RPL_ISON_MSG, sizeof rpl);
+ for (i = 0; i < Req->argc; i++) {
+ /* "All" ircd even parse ":<x> <y> ..." arguments and split
+ * them up; so we do the same ... */
+ ptr = strtok(Req->argv[i], " ");
+ while (ptr) {
+ ngt_TrimStr(ptr);
+ c = Client_Search(ptr);
+ if (c && Client_Type(c) == CLIENT_USER) {
+ strlcat(rpl, ptr, sizeof(rpl));
+ strlcat(rpl, " ", sizeof(rpl));