removed getTextBot() function and added textbot parameter to the CMD_BIND header...
[NeonServV5.git] / src / modules / NeonFun.mod / cmd_neonfun_uno.c
index b2ba1e6d103580235b525f1d541583f8389e12a3..ee78224ea82befde750cf7c510de233a333af48b 100644 (file)
@@ -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;