This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 1st, 2009  |  syntax: None  |  size: 0.82 KB  |  views: 102  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -r 7d066adfa258 jpoker/js/jquery.jpoker.js
  2. --- a/jpoker/js/jquery.jpoker.js        Wed Sep 30 13:20:11 2009 +0200
  3. +++ b/jpoker/js/jquery.jpoker.js        Thu Oct 01 02:02:46 2009 +0200
  4.  -1402,7 +1402,16 @@
  5.                          server.setState(server.TABLE_JOIN);
  6.                          server.sendPacket({ 'type': 'PacketPokerTableJoin',
  7.                                      'game_id': game_id });
  8. -                    });
  9. +
  10. +                                   server.registerHandler(0, function(server, unused_game_id, packet) {
  11. +                                       if (packet.type == 'PacketPokerError') {
  12. +                                               jpoker.dialog(packet.message);
  13. +                                               return false;
  14. +                                           }
  15. +                                           return true;
  16. +                                       });
  17. +                    });
  18. +                
  19.              },
  20.  
  21.              tablePick: function(criterion) {
clone this paste RAW Paste Data