src/plugins/onMessage/corpInfo.php 1 location
|
@@ 95-99 (lines=5) @@
|
| 92 |
|
return $this->message->reply("**Error:** Unable to find any group matching that name."); |
| 93 |
|
} |
| 94 |
|
$corpID = null; |
| 95 |
|
if (isset($xml->result->rowset->row)) { |
| 96 |
|
foreach ($xml->result->rowset->row as $character) { |
| 97 |
|
$corpID = $character->attributes()->characterID; |
| 98 |
|
} |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
if (empty($corpID)) { |
| 102 |
|
return $this->message->reply("**Error:** Unable to find any group matching that name."); |
src/plugins/onMessage/charInfo.php 1 location
|
@@ 104-107 (lines=4) @@
|
| 101 |
|
$xml = makeApiRequest($url); |
| 102 |
|
$characterID = null; |
| 103 |
|
|
| 104 |
|
if (isset($xml->result->rowset->row)) { |
| 105 |
|
foreach ($xml->result->rowset->row as $character) { |
| 106 |
|
$characterID = $character->attributes()->characterID; |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
if (empty($characterID)) { |
| 110 |
|
return $this->message->reply("**Error:** no data available"); |