~yandere-dev/yandere/0.1

« back to all changes in this revision

Viewing changes to functions/game-completed.php

  • Committer: dhammond
  • Date: 2008-11-20 14:27:11 UTC
  • Revision ID: svn-v3-single1-dHJ1bmsvcGhhcm8tbW9kdWxlcy9pcmMteWFuZGVyZQ..:3f858fc8-aa8f-444a-bb42-203473f3994f:trunk%2Fpharo-modules%2Firc-yandere:13
Various changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        {
22
22
                if (!in_array($player->role, $this->custom_vars->yandere_enemies) xor $enemies_won)
23
23
                {
24
 
                        db_query('INSERT INTO ircbot_yandere_prizes (nick, added) VALUES ('.db_string(irc_lower($player->nick)).', '.db_time().')');
25
 
                        
26
 
                        notice($player->nick, 'You\'ve received a prize for winning the game. To collect it, go into a channel with a loli game and type "!loli collect"');
 
24
                        if (include_mod('irc-loli'))
 
25
                        {
 
26
                                db_query('INSERT INTO ircbot_loli_prizes (nick, added) VALUES ('.db_string(irc_lower($player->nick)).', '.db_time().')');
 
27
                                
 
28
                                notice($player->nick, 'You\'ve received a prize for winning the game. To collect it, go into a channel with a loli game and type "!loli collect"');
 
29
                        }
27
30
                }
28
31
        }
29
32