X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonFun.mod%2Fcmd_neonfun_uno.c;h=5517a70b53b86406d4259a526c281539e79b4935;hb=78e040af3fcc36ab684611c0f98b4381ff420878;hp=b2ba1e6d103580235b525f1d541583f8389e12a3;hpb=0276f41e2356699b023499a33bdb9b0d07cf9297;p=NeonServV5.git diff --git a/src/modules/NeonFun.mod/cmd_neonfun_uno.c b/src/modules/NeonFun.mod/cmd_neonfun_uno.c index b2ba1e6..5517a70 100644 --- a/src/modules/NeonFun.mod/cmd_neonfun_uno.c +++ b/src/modules/NeonFun.mod/cmd_neonfun_uno.c @@ -1,4 +1,4 @@ -/* cmd_neonfun_uno.c - NeonServ v5.4 +/* cmd_neonfun_uno.c - NeonServ v5.5 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ CMD_BIND(neonfun_cmd_uno) { if(game->state == UNO_STATE_WAITING) break; else { - reply(getTextBot(), user, "NF_UNO_ALREADY_RUNNING", chan->name); + reply(textclient, user, "NF_UNO_ALREADY_RUNNING", chan->name); return; } } @@ -37,7 +37,7 @@ CMD_BIND(neonfun_cmd_uno) { struct uno_player *player, *last_player = NULL; for(player = game->player; player; player = player->next) { if(player->chanuser == chanuser) { - reply(getTextBot(), user, "NF_UNO_ALREADY_JOINED"); + reply(textclient, user, "NF_UNO_ALREADY_JOINED"); return; } else last_player = player; @@ -56,7 +56,7 @@ CMD_BIND(neonfun_cmd_uno) { } else { game = malloc(sizeof(*game)); game->channel = chan; - game->textbot = getTextBot(); + game->textbot = textclient; game->state = UNO_STATE_WAITING; game->reverse_direction = 0; game->take_cards_pending = 0;