send_confirmation_code -> sendConfirmationCode
This commit is contained in:
parent
1eccd2a4bd
commit
a70cceaddd
@ -261,7 +261,7 @@ abstract class ImPlugin extends Plugin
|
|||||||
*
|
*
|
||||||
* @return boolean success value
|
* @return boolean success value
|
||||||
*/
|
*/
|
||||||
function send_confirmation_code($screenname, $code, $user)
|
function sendConfirmationCode($screenname, $code, $user)
|
||||||
{
|
{
|
||||||
$body = sprintf(_('User "%s" on %s has said that your %s screenname belongs to them. ' .
|
$body = sprintf(_('User "%s" on %s has said that your %s screenname belongs to them. ' .
|
||||||
'If that\'s true, you can confirm by clicking on this URL: ' .
|
'If that\'s true, you can confirm by clicking on this URL: ' .
|
||||||
@ -606,7 +606,7 @@ abstract class ImPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
if($transport == $this->transport)
|
if($transport == $this->transport)
|
||||||
{
|
{
|
||||||
$this->send_confirmation_code($screenname, $code, $user);
|
$this->sendConfirmationCode($screenname, $code, $user);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,7 @@ class IrcPlugin extends ImPlugin {
|
|||||||
* @param User $user user sending to
|
* @param User $user user sending to
|
||||||
* @return boolean success value
|
* @return boolean success value
|
||||||
*/
|
*/
|
||||||
public function send_confirmation_code($screenname, $code, $user, $checked = false) {
|
public function sendConfirmationCode($screenname, $code, $user, $checked = false) {
|
||||||
$body = sprintf(_('User "%s" on %s has said that your %s screenname belongs to them. ' .
|
$body = sprintf(_('User "%s" on %s has said that your %s screenname belongs to them. ' .
|
||||||
'If that\'s true, you can confirm by clicking on this URL: ' .
|
'If that\'s true, you can confirm by clicking on this URL: ' .
|
||||||
'%s' .
|
'%s' .
|
||||||
@ -299,7 +299,7 @@ class IrcPlugin extends ImPlugin {
|
|||||||
$user->nickname, common_config('site', 'name'), $this->getDisplayName(), common_local_url('confirmaddress', array('code' => $code)));
|
$user->nickname, common_config('site', 'name'), $this->getDisplayName(), common_local_url('confirmaddress', array('code' => $code)));
|
||||||
|
|
||||||
if ($this->regcheck && !$checked) {
|
if ($this->regcheck && !$checked) {
|
||||||
return $this->checked_send_confirmation_code($screenname, $code, $user);
|
return $this->checked_sendConfirmationCode($screenname, $code, $user);
|
||||||
} else {
|
} else {
|
||||||
return $this->sendMessage($screenname, $body);
|
return $this->sendMessage($screenname, $body);
|
||||||
}
|
}
|
||||||
@ -314,7 +314,7 @@ class IrcPlugin extends ImPlugin {
|
|||||||
* @param User $user User sending to
|
* @param User $user User sending to
|
||||||
* @return boolean true on succes
|
* @return boolean true on succes
|
||||||
*/
|
*/
|
||||||
public function checked_send_confirmation_code($screenname, $code, $user) {
|
public function checked_sendConfirmationCode($screenname, $code, $user) {
|
||||||
$this->fake_irc->doPrivmsg('NickServ', 'INFO '.$screenname);
|
$this->fake_irc->doPrivmsg('NickServ', 'INFO '.$screenname);
|
||||||
$this->enqueueOutgoingRaw(
|
$this->enqueueOutgoingRaw(
|
||||||
array(
|
array(
|
||||||
|
@ -229,7 +229,7 @@ class IrcManager extends ImManager {
|
|||||||
if (isset($this->regChecksLookup[$usernick])) {
|
if (isset($this->regChecksLookup[$usernick])) {
|
||||||
if ($data['registered']) {
|
if ($data['registered']) {
|
||||||
// Send message
|
// Send message
|
||||||
$this->plugin->send_confirmation_code($screenname, $nickdata['code'], $nickdata['user'], true);
|
$this->plugin->sendConfirmationCode($screenname, $nickdata['code'], $nickdata['user'], true);
|
||||||
} else {
|
} else {
|
||||||
$this->plugin->sendMessage($screenname, _m('Your nickname is not registered so IRC connectivity cannot be enabled'));
|
$this->plugin->sendMessage($screenname, _m('Your nickname is not registered so IRC connectivity cannot be enabled'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user