Move reinstate_user_modes() and update_user_mode() from funny.c to server.c and parse.c

Move these functions where they belong.
This commit is contained in:
Kevin Easton
2017-12-06 22:13:34 +11:00
parent c4ba093ca5
commit 305cfe2afb
6 changed files with 41 additions and 41 deletions

View File

@@ -1918,6 +1918,13 @@ void clear_user_modes (int gindex)
set_umode(gindex);
}
void reinstate_user_modes(int server)
{
char *modes = get_umode(server);
if (modes && *modes)
my_send_to_server(server, "MODE %s +%s", get_server_nickname(server), modes);
}
/*
* Encapsulates everything we need to change our AWAY status.
* This improves greatly on having everyone peek into that member.