From: Luke Fitzgerald Date: Fri, 23 Jul 2010 21:13:23 +0000 (-0700) Subject: Cosmetic: Rearrange code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be0fb0356022bc647e30f79f71c9e6d104747699;p=quix0rs-gnu-social.git Cosmetic: Rearrange code --- diff --git a/plugins/Irc/IrcPlugin.php b/plugins/Irc/IrcPlugin.php index ce8f317843..d23f5005c0 100644 --- a/plugins/Irc/IrcPlugin.php +++ b/plugins/Irc/IrcPlugin.php @@ -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 *