Renamed wmud_maintenance_check_new_players() to wmud_maintenance_check_players()
The old name was confusing, as this function will have to do other things later. Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
parent
90f870c48a
commit
978cefe8b0
@ -38,7 +38,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wmud_maintenance_check_new_players:
|
* wmud_maintenance_check_players:
|
||||||
* @player: #wmudPLayer structure of the player record to check
|
* @player: #wmudPLayer structure of the player record to check
|
||||||
* @user_data: not used
|
* @user_data: not used
|
||||||
*
|
*
|
||||||
@ -46,7 +46,7 @@
|
|||||||
* an unset password, and generate one for them, if so.
|
* an unset password, and generate one for them, if so.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
wmud_maintenance_check_new_players(wmudPlayer *player, gpointer user_data)
|
wmud_maintenance_check_players(wmudPlayer *player, gpointer user_data)
|
||||||
{
|
{
|
||||||
if (player->cpassword == NULL)
|
if (player->cpassword == NULL)
|
||||||
{
|
{
|
||||||
@ -86,7 +86,7 @@ wmud_maintenance(gpointer user_data)
|
|||||||
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Starting maintenance...");
|
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Starting maintenance...");
|
||||||
/* Run through the player list, and generate a random password for each
|
/* Run through the player list, and generate a random password for each
|
||||||
* newly registered player */
|
* newly registered player */
|
||||||
g_slist_foreach(players, (GFunc)wmud_maintenance_check_new_players, NULL);
|
g_slist_foreach(players, (GFunc)wmud_maintenance_check_players, NULL);
|
||||||
|
|
||||||
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Finished maintenance...");
|
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Finished maintenance...");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user