projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b35949e
)
check op on #C not on #PHP for CGod.class.php
author
pk910
<philipp@zoelle1.de>
Sun, 27 Nov 2011 02:58:41 +0000
(
03:58
+0100)
committer
pk910
<philipp@zoelle1.de>
Sun, 27 Nov 2011 02:58:41 +0000
(
03:58
+0100)
Bots/CGod.class.php
patch
|
blob
|
history
diff --git
a/Bots/CGod.class.php
b/Bots/CGod.class.php
index 40a466f2519119a1e75c9517a0c1e1218076ac67..4871694f1c3f45e1925105605c01cea92b368e25 100644
(file)
--- a/
Bots/CGod.class.php
+++ b/
Bots/CGod.class.php
@@
-74,13
+74,13
@@
class {$_NAME} extends Bot {
}
function recive_privmsg($user, $channel, $message) {
}
function recive_privmsg($user, $channel, $message) {
- $opOn
PHP
Channel = false;
- $
PHPChannel = P10_Channel::getChannelByName("#PHP
");
- if($
PHP
Channel) {
- $privs = $
PHP
Channel->getUserPrivs($user);
- $opOn
PHP
Channel = ($privs & P10_Channel::USERPRIV_OPED);
+ $opOn
C
Channel = false;
+ $
CChannel = P10_Channel::getChannelByName("#C
");
+ if($
C
Channel) {
+ $privs = $
C
Channel->getUserPrivs($user);
+ $opOn
C
Channel = ($privs & P10_Channel::USERPRIV_OPED);
}
}
- if(!$user->getModes()->hasMode('o') && !$opOn
PHP
Channel) return 0;
+ if(!$user->getModes()->hasMode('o') && !$opOn
C
Channel) return 0;
$exp=explode(" ", $message, 2);
switch (strtolower($exp[0])) {
case "~c":
$exp=explode(" ", $message, 2);
switch (strtolower($exp[0])) {
case "~c":