|
@@ 197-201 (lines=5) @@
|
| 194 |
|
$allianceContacts = getContacts($allianceID); |
| 195 |
|
$corpContacts = getContacts($corpID); |
| 196 |
|
foreach ($roles as $role) { |
| 197 |
|
if ((@(int) $allianceContacts['standing'] === 5 || @(int) $corpContacts['standing'] === 5) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['plus5Role']) { |
| 198 |
|
$member->addRole($role); |
| 199 |
|
$role = 'blue'; |
| 200 |
|
break; |
| 201 |
|
} |
| 202 |
|
if ((@(int) $allianceContacts['standing'] === 10 || @(int) $corpContacts['standing'] === 10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['plus10Role']) { |
| 203 |
|
$member->addRole($role); |
| 204 |
|
$role = 'blue'; |
|
@@ 202-206 (lines=5) @@
|
| 199 |
|
$role = 'blue'; |
| 200 |
|
break; |
| 201 |
|
} |
| 202 |
|
if ((@(int) $allianceContacts['standing'] === 10 || @(int) $corpContacts['standing'] === 10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['plus10Role']) { |
| 203 |
|
$member->addRole($role); |
| 204 |
|
$role = 'blue'; |
| 205 |
|
break; |
| 206 |
|
} |
| 207 |
|
if ((@(int) $allianceContacts['standing'] === -5 || @(int) $corpContacts['standing'] === -5) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus5Role']) { |
| 208 |
|
$member->addRole($role); |
| 209 |
|
$role = 'red'; |
|
@@ 207-211 (lines=5) @@
|
| 204 |
|
$role = 'blue'; |
| 205 |
|
break; |
| 206 |
|
} |
| 207 |
|
if ((@(int) $allianceContacts['standing'] === -5 || @(int) $corpContacts['standing'] === -5) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus5Role']) { |
| 208 |
|
$member->addRole($role); |
| 209 |
|
$role = 'red'; |
| 210 |
|
break; |
| 211 |
|
} |
| 212 |
|
if ((@(int) $allianceContacts['standing'] === -10 || @(int) $corpContacts['standing'] === -10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus10Role']) { |
| 213 |
|
$member->addRole($role); |
| 214 |
|
$role = 'red'; |
|
@@ 212-216 (lines=5) @@
|
| 209 |
|
$role = 'red'; |
| 210 |
|
break; |
| 211 |
|
} |
| 212 |
|
if ((@(int) $allianceContacts['standing'] === -10 || @(int) $corpContacts['standing'] === -10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus10Role']) { |
| 213 |
|
$member->addRole($role); |
| 214 |
|
$role = 'red'; |
| 215 |
|
break; |
| 216 |
|
} |
| 217 |
|
} |
| 218 |
|
if ($role === null) { |
| 219 |
|
foreach ($roles as $role) { |