Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Renamed variables

  • Loading branch information...
commit 264eb976cbf8fb64e90d47e054fc31780864bea9 1 parent 24b134b
Vladimir Jimenez authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 URLJobs.cpp
12 URLJobs.cpp
@@ -25,7 +25,7 @@ void leagueOverSeer::URLDone( const char* URL, void* data, unsigned int size, bo
25 25 {
26 26 std::string siteData = (char*)(data); //Convert the data to a std::string
27 27
28   - if(_urlQuery.at(0)._URL.compare("query") == 0 && URL == QUERY_URL) //Someone queried for teams
  28 + if(_urlQuery.at(0)._URL.compare("query") == 0 && URL == LEAGUE_URL) //Someone queried for teams
29 29 {
30 30 char* token; //Store tokens
31 31 bz_sendTextMessage(BZ_SERVER,_playerIDs.at(0)._playerID," Team List");
@@ -44,7 +44,7 @@ void leagueOverSeer::URLDone( const char* URL, void* data, unsigned int size, bo
44 44 _urlQuery.erase(_urlQuery.begin(),_urlQuery.begin()+1); //Tell the plugin that the the match query has been delt with, move to the next url job
45 45 _playerIDs.erase(_playerIDs.begin(),_playerIDs.begin()+1); //Tell the plugin that this player has received his/her information, move to the next player
46 46 }
47   - else if(_urlQuery.at(0)._URL.compare("match") == 0 && URL == REPORT_URL) //The plugin reported the match successfully
  47 + else if(_urlQuery.at(0)._URL.compare("match") == 0 && URL == LEAGUE_URL) //The plugin reported the match successfully
48 48 {
49 49 bz_sendTextMessagef(BZ_SERVER,BZ_ALLUSERS,"%s",(char*)data);
50 50 bz_debugMessagef(DEBUG,"%s",(char*)data);
@@ -55,7 +55,7 @@ void leagueOverSeer::URLDone( const char* URL, void* data, unsigned int size, bo
55 55
56 56 void leagueOverSeer::URLTimeout(const char* URL, int errorCode) //The league website is down or is not responding, the request timed out
57 57 {
58   - if(_urlQuery.at(0)._URL.compare("match") == 0 && URL == REPORT_URL) //Something went wrong while reporting the match, it timed out
  58 + if(_urlQuery.at(0)._URL.compare("match") == 0 && URL == LEAGUE_URL) //Something went wrong while reporting the match, it timed out
59 59 {
60 60 bz_sendTextMessage(BZ_SERVER,BZ_ALLUSERS,">-- WARNING --<");
61 61 bz_sendTextMessage(BZ_SERVER,BZ_ALLUSERS,">-- The request to report the match has timed out. --<");
@@ -64,7 +64,7 @@ void leagueOverSeer::URLTimeout(const char* URL, int errorCode) //The league web
64 64
65 65 _urlQuery.erase(_urlQuery.begin(),_urlQuery.begin()+1); //Tell the plugin that the the match query has been delt with, move to the next url job
66 66 }
67   - else if(_urlQuery.at(0)._URL.compare("query") == 0 && URL == QUERY_URL) //Something went wrong with the team query, it timed out
  67 + else if(_urlQuery.at(0)._URL.compare("query") == 0 && URL == LEAGUE_URL) //Something went wrong with the team query, it timed out
68 68 {
69 69 bz_sendTextMessage(BZ_SERVER,_playerIDs.at(0)._playerID, "The request to query the league website has timed out. Please try again later.");
70 70
@@ -75,7 +75,7 @@ void leagueOverSeer::URLTimeout(const char* URL, int errorCode) //The league web
75 75
76 76 void leagueOverSeer::URLError(const char* URL, int errorCode, const char *errorString) //The server owner must have set up the URLs wrong because this shouldn't happen
77 77 {
78   - if(_urlQuery.at(0)._URL.compare("match") == 0 && URL == REPORT_URL) //Something went wrong while reporting the match, no website found
  78 + if(_urlQuery.at(0)._URL.compare("match") == 0 && URL == LEAGUE_URL) //Something went wrong while reporting the match, no website found
79 79 {
80 80 bz_sendTextMessage(BZ_SERVER,BZ_ALLUSERS,">-- WARNING --<");
81 81 bz_sendTextMessagef(BZ_SERVER,BZ_ALLUSERS,">-- Match report failed with error code %i - %s --<",errorCode,errorString);
@@ -85,7 +85,7 @@ void leagueOverSeer::URLError(const char* URL, int errorCode, const char *errorS
85 85
86 86 _urlQuery.erase(_urlQuery.begin(),_urlQuery.begin()+1); //Tell the plugin that the the match query has been delt with, move to the next url job
87 87 }
88   - else if(_urlQuery.at(0)._URL.compare("query") == 0 && URL == QUERY_URL) //Something went wrong with the team query, no website found
  88 + else if(_urlQuery.at(0)._URL.compare("query") == 0 && URL == LEAGUE_URL) //Something went wrong with the team query, no website found
89 89 {
90 90 bz_sendTextMessagef(BZ_SERVER,_playerIDs.at(0)._playerID, "Your team query failed with error code %i - %s",errorCode,errorString);
91 91 bz_sendTextMessagef(BZ_SERVER,_playerIDs.at(0)._playerID, "Please contact a league admin with this error as this should not happen.");

0 comments on commit 264eb97

Please sign in to comment.
Something went wrong with that request. Please try again.