From be0fb0356022bc647e30f79f71c9e6d104747699 Mon Sep 17 00:00:00 2001 From: Luke Fitzgerald Date: Fri, 23 Jul 2010 14:13:23 -0700 Subject: [PATCH] Cosmetic: Rearrange code --- plugins/Irc/IrcPlugin.php | 52 +++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) 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 * -- 2.39.2