Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
add ceo resign #191
Browse files Browse the repository at this point in the history
  • Loading branch information
shibdib committed May 11, 2017
1 parent 4b80c86 commit 36ef33f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/plugins/onTick/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,15 @@ private function getNotifications($keyID, $vCode, $characterID)
case 21: // member left corp
$msg = 'skip';
break;
case 22: // ceo resign
preg_match('/(?<=newCeoID: )\S+/i', $notificationString, $newCeoID);
preg_match('/(?<=oldCeoID: )\S+/i', $notificationString, $oldCeoID);
preg_match('/(?<=corpID: )\S+/i', $notificationString, $corpID);
$newCeoName = characterName($newCeoID);
$oldCeoName = characterName($oldCeoID);
$corpName = corpName($corpID);
$msg = "$oldCeoName has resigned as CEO for $corpName, $newCeoName has been appointed as the new CEO.";
break;
case 25: // corp vote
$msg = 'skip';
break;
Expand Down

0 comments on commit 36ef33f

Please sign in to comment.