Cosmetic: Rearrange code

This commit is contained in:
Luke Fitzgerald 2010-07-23 14:13:23 -07:00
parent 4dcf2a1f51
commit be0fb03560

View File

@ -167,32 +167,6 @@ class IrcPlugin extends ImPlugin {
return true;
}
/**
* Only sends the confirmation message if the nick is
* registered
*
* @param string $screenname screenname sending to
* @param string $code the confirmation code
* @param User $user user sending to
* @return boolean success value
*/
public function checked_send_confirmation_code($screenname, $code, $user) {
$this->fake_irc->doPrivmsg('NickServ', 'INFO '.$screenname);
$this->enqueue_outgoing_raw(
array(
'type' => 'nickcheck',
'data' => $this->fake_irc->would_be_sent,
'nickdata' =>
array(
'screenname' => $screenname,
'code' => $code,
'user' => $user
)
)
);
return true;
}
/**
* Accept a queued input message.
*
@ -227,6 +201,32 @@ class IrcPlugin extends ImPlugin {
}
}
/**
* Only sends the confirmation message if the nick is
* registered
*
* @param string $screenname screenname sending to
* @param string $code the confirmation code
* @param User $user user sending to
* @return boolean success value
*/
public function checked_send_confirmation_code($screenname, $code, $user) {
$this->fake_irc->doPrivmsg('NickServ', 'INFO '.$screenname);
$this->enqueue_outgoing_raw(
array(
'type' => 'nickcheck',
'data' => $this->fake_irc->would_be_sent,
'nickdata' =>
array(
'screenname' => $screenname,
'code' => $code,
'user' => $user
)
)
);
return true;
}
/**
* Initialize plugin
*