get_user -> getUser
This commit is contained in:
parent
054111bb54
commit
9ccf65a311
@ -168,7 +168,7 @@ abstract class ImPlugin extends Plugin
|
||||
*
|
||||
* @return User user
|
||||
*/
|
||||
function get_user($screenname)
|
||||
function getUser($screenname)
|
||||
{
|
||||
$user_im_prefs = $this->getUserImPrefsFromScreenname($screenname);
|
||||
if($user_im_prefs){
|
||||
@ -438,7 +438,7 @@ abstract class ImPlugin extends Plugin
|
||||
*/
|
||||
protected function handleIncoming($from, $notice_text)
|
||||
{
|
||||
$user = $this->get_user($from);
|
||||
$user = $this->getUser($from);
|
||||
// For common_current_user to work
|
||||
global $_cur;
|
||||
$_cur = $user;
|
||||
|
@ -135,7 +135,7 @@ class AimPlugin extends ImPlugin
|
||||
{
|
||||
$info=Aim::getMessageInfo($message);
|
||||
$from = $info['from'];
|
||||
$user = $this->get_user($from);
|
||||
$user = $this->getUser($from);
|
||||
$notice_text = $info['message'];
|
||||
|
||||
$this->handleIncoming($from, $notice_text);
|
||||
|
@ -229,7 +229,7 @@ class IrcPlugin extends ImPlugin {
|
||||
* @param boolean true on success
|
||||
*/
|
||||
protected function handle_channel_incoming($nick, $channel, $notice_text) {
|
||||
$user = $this->get_user($nick);
|
||||
$user = $this->getUser($nick);
|
||||
// For common_current_user to work
|
||||
global $_cur;
|
||||
$_cur = $user;
|
||||
|
Loading…
Reference in New Issue
Block a user