Fixes to magichat client

This commit is contained in:
Andrew Pamment 2017-03-20 11:47:36 +10:00
parent 7bb688b32f
commit 879bf81d80
2 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,7 @@ void chat_system(struct user_record *user) {
}
memset(inputbuffer, 0, 80);
if (conf.mgchat_server == NULL) {
if (conf.mgchat_server == NULL && conf.mgchat_bbstag != NULL) {
s_putstring(get_string(49));
return;
}
@ -186,6 +186,8 @@ void chat_system(struct user_record *user) {
memset(screenbuffer[i], 0, 81);
}
raw("{ \"bbstag\": \"%s\", \"nick\": \"%s\", \"msg\": \"LOGIN\" }", conf.mgchat_bbstag, user->loginname);
while (1) {
FD_ZERO(&fds);
FD_SET(chat_in, &fds);

1
main.c
View File

@ -1083,6 +1083,7 @@ int main(int argc, char **argv) {
conf.file_directory_count = 0;
conf.mgchat_server = NULL;
conf.mgchat_port = 2025;
conf.mgchat_bbstag = NULL;
conf.text_file_count = 0;
conf.external_editor_cmd = NULL;
conf.log_path = NULL;