projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
35ca2c6
)
reduce HACK(4) messages by using MODE instead of OPMODE for bots having UMode +k set
author
pk910
<philipp@zoelle1.de>
Thu, 29 Dec 2011 18:10:44 +0000
(19:10 +0100)
committer
pk910
<philipp@zoelle1.de>
Thu, 29 Dec 2011 18:10:44 +0000
(19:10 +0100)
Uplink/Uplink.class.php
patch
|
blob
|
history
diff --git
a/Uplink/Uplink.class.php
b/Uplink/Uplink.class.php
index 27902d59857e39e71d6dd2342f670ad226e69100..69362a2ea37da18aa0c87d03c757754272cbc8dc 100644
(file)
--- a/
Uplink/Uplink.class.php
+++ b/
Uplink/Uplink.class.php
@@
-921,7
+921,7
@@
class Uplink {
$modestr .= (($privs & P10_Channel::USERPRIV_OPED) ? " ".$user->getNumeric() : "");
$modestr .= (($privs & P10_Channel::USERPRIV_HALFOP) ? " ".$user->getNumeric() : "");
$modestr .= (($privs & P10_Channel::USERPRIV_VOICE) ? " ".$user->getNumeric() : "");
$modestr .= (($privs & P10_Channel::USERPRIV_OPED) ? " ".$user->getNumeric() : "");
$modestr .= (($privs & P10_Channel::USERPRIV_HALFOP) ? " ".$user->getNumeric() : "");
$modestr .= (($privs & P10_Channel::USERPRIV_VOICE) ? " ".$user->getNumeric() : "");
- $this->send(
"OM"
, $user->getNumeric(), $chanName, $modestr);
+ $this->send(
($user->getModes()->hasMode('k') ? "M" : "OM")
, $user->getNumeric(), $chanName, $modestr);
}
}
if($this->eventHandler)
}
}
if($this->eventHandler)