src/chanserv.c: Do not mix variable declarations and code.
authorMichael Poole <mdpoole@troilus.org>
Thu, 20 Mar 2008 03:43:01 +0000 (23:43 -0400)
committerMichael Poole <mdpoole@troilus.org>
Thu, 20 Mar 2008 03:43:01 +0000 (23:43 -0400)
src/chanserv.c

index d2f26938697b94a4c996c8ce246e3e5ce83a3c0c..7a3fad0e5517b8329dd5407cdebfb5f75c0a814e 100644 (file)
@@ -1646,6 +1646,7 @@ static unsigned int send_dnrs(struct userNode *user, dict_t dict)
 static CHANSERV_FUNC(cmd_noregister)
 {
     const char *target;
+    const char *reason;
     unsigned long expiry, duration;
     unsigned int matches;
 
@@ -1688,7 +1689,7 @@ static CHANSERV_FUNC(cmd_noregister)
             return 0;
         }
 
-        const char *reason = unsplit_string(argv + 3, argc - 3, NULL);
+        reason = unsplit_string(argv + 3, argc - 3, NULL);
         if((*target == '*') && !get_handle_info(target + 1))
         {
             reply("MSG_HANDLE_UNKNOWN", target + 1);