diff options
author | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-07-23 14:13:23 -0700 |
---|---|---|
committer | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-07-23 14:13:37 -0700 |
commit | be0fb0356022bc647e30f79f71c9e6d104747699 (patch) | |
tree | 62b5dea54c824693096c152b98153b02d0637ad6 /plugins/Irc/IrcPlugin.php | |
parent | 4dcf2a1f51311bc8c5c1acee80a23af220e0f405 (diff) |
Cosmetic: Rearrange code
Diffstat (limited to 'plugins/Irc/IrcPlugin.php')
-rw-r--r-- | plugins/Irc/IrcPlugin.php | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/plugins/Irc/IrcPlugin.php b/plugins/Irc/IrcPlugin.php index ce8f31784..d23f5005c 100644 --- a/plugins/Irc/IrcPlugin.php +++ b/plugins/Irc/IrcPlugin.php @@ -168,32 +168,6 @@ 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; - } - - /** * Accept a queued input message. * * @return true if processing completed, false if message should be reprocessed @@ -228,6 +202,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 * * @return boolean |