You'll need to change
void do_connect( CHAR_DATA *ch, char *argument )
to
void do_connect( CHAR_DATA *ch, const char *argument )
If changing this produces extra errors, post the function and the list of errors for me, and I'll explain what needs to be changed, and attempt to explain why. If I can't explain it, I'm sure DavidHaley can.