forked from GNUsocial/gnu-social
get_screenname -> getScreenname
This commit is contained in:
parent
c54ef9b8b6
commit
44f1b94301
@ -47,14 +47,14 @@ class IMChannel extends Channel
|
|||||||
function output($user, $text)
|
function output($user, $text)
|
||||||
{
|
{
|
||||||
$text = '['.common_config('site', 'name') . '] ' . $text;
|
$text = '['.common_config('site', 'name') . '] ' . $text;
|
||||||
$this->imPlugin->sendMessage($this->imPlugin->get_screenname($user), $text);
|
$this->imPlugin->sendMessage($this->imPlugin->getScreenname($user), $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
function error($user, $text)
|
function error($user, $text)
|
||||||
{
|
{
|
||||||
$text = '['.common_config('site', 'name') . '] ' . $text;
|
$text = '['.common_config('site', 'name') . '] ' . $text;
|
||||||
|
|
||||||
$screenname = $this->imPlugin->get_screenname($user);
|
$screenname = $this->imPlugin->getScreenname($user);
|
||||||
if($screenname){
|
if($screenname){
|
||||||
$this->imPlugin->sendMessage($screenname, $text);
|
$this->imPlugin->sendMessage($screenname, $text);
|
||||||
return true;
|
return true;
|
||||||
|
@ -208,7 +208,7 @@ abstract class ImPlugin extends Plugin
|
|||||||
*
|
*
|
||||||
* @return string screenname of that user
|
* @return string screenname of that user
|
||||||
*/
|
*/
|
||||||
function get_screenname($user)
|
function getScreenname($user)
|
||||||
{
|
{
|
||||||
$user_im_prefs = $this->getUserImPrefsFromUser($user);
|
$user_im_prefs = $this->getUserImPrefsFromUser($user);
|
||||||
if ($user_im_prefs) {
|
if ($user_im_prefs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user