Permalink
Browse files

get_port takes socket-number

  • Loading branch information...
1 parent ca5187f commit bfbf53735160381acab6f6f8681b4e7e6a336bb1 Robert A committed Jun 7, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 duoit.c
View
@@ -260,6 +260,10 @@ int user_command(instruc *instruction, usr *user) {
//remove redundant whitespaces from params
instruction->params = trim(instruction->params);
+ //only one parameter allowed
+ if (!(strchr(instruction->params, ' '))) {
+ return 1;
+ }
if (!(strcmp(instruction->params, "duoit"))) {
send_message(user->csocket, "230 User logged in.");

0 comments on commit bfbf537

Please sign in to comment.