]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Cosmetic: Rearrange code
authorLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Fri, 23 Jul 2010 21:13:23 +0000 (14:13 -0700)
committerLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Fri, 23 Jul 2010 21:13:37 +0000 (14:13 -0700)
plugins/Irc/IrcPlugin.php

index ce8f317843baca2f46ec95bd904fb8f508c61f0e..d23f5005c0b9a62ee50a45624843f30268285a6c 100644 (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
     *