updated setting nick

This commit is contained in:
Michiel Broek 2005-04-22 20:10:03 +00:00
parent 43ebecc091
commit 5d98facd6d

View File

@ -115,6 +115,7 @@ extern int s_bbsopen; /* The BBS open status */
#ifdef USE_EXPERIMENT #ifdef USE_EXPERIMENT
extern srv_list *servers; /* Connected servers */ extern srv_list *servers; /* Connected servers */
extern usr_list *users; /* Connected users */ extern usr_list *users; /* Connected users */
extern int usrchg;
#endif #endif
@ -635,14 +636,13 @@ char *chat_put(char *data)
system_msg(chat_users[i].pid, buf); system_msg(chat_users[i].pid, buf);
send_all("NICK %s %s %s %s\r\n", chat_users[i].nick, chat_users[i].name, send_all("NICK %s %s %s %s\r\n", chat_users[i].nick, chat_users[i].name,
CFG.myfqdn, chat_users[i].realname); CFG.myfqdn, chat_users[i].realname);
usrchg = TRUE;
chat_dump(); chat_dump();
goto ack; goto ack;
} }
} }
} }
if (!found) { sprintf(buf, "Can't set nick");
sprintf(buf, "Can't set nick");
}
} }
#else #else
strncpy(chat_users[i].nick, cmd, 9); strncpy(chat_users[i].nick, cmd, 9);