]> jfr.im git - irc/quakenet/newserv.git/blobdiff - request/lrequest.c
fix indentation
[irc/quakenet/newserv.git] / request / lrequest.c
index 09706980cdaea2dc344a8ddf73deb1b93745c0d7..a82ab4ce18be99f6f2a2864140f45f4212a15819 100644 (file)
@@ -15,7 +15,7 @@ int lr_floodattempts = 0;
 
 #define min(a,b) ((a > b) ? b : a)
 
-int lr_requestl(nick *svc, nick *np, channel *cp, nick *lnick) {
+int lr_requestl(nick *svc, nick *np, channel *cp, nick *qnick) {
   chanfix *cf;
   regop *rolist[LR_TOPX], *ro;
   int i, rocount;
@@ -31,7 +31,7 @@ int lr_requestl(nick *svc, nick *np, channel *cp, nick *lnick) {
   cf = cf_findchanfix(cp->index);
 
   if (cf == NULL) {
-    sendnoticetouser(svc, np, "Error: Your channel is too new. Try again later.");
+    sendnoticetouser(svc, np, "Error: Sorry, Your channel '%s' was created recently. Please Try again in an hour.", cp->index->name->content);
 
     lr_noregops++;
 
@@ -50,8 +50,8 @@ int lr_requestl(nick *svc, nick *np, channel *cp, nick *lnick) {
   }
 
   if (ro == NULL) {
-    sendnoticetouser(svc, np, "Error: You must be one of the top %d ops "
-          "for that channel.", LR_TOPX);
+    sendnoticetouser(svc, np, "Error: Sorry, You must be one of the top %d ops "
+          "for the channel %s.", LR_TOPX, cp->index->name->content);
 
     lr_top5++;
 
@@ -69,27 +69,28 @@ int lr_requestl(nick *svc, nick *np, channel *cp, nick *lnick) {
       return RQ_ERROR;
     }
 
-    sendnoticetouser(svc, np, "Try again later. You do not meet the "
-          "requirements to request L. You may need to wait longer "
-          "(see http://www.quakenet.org/faq/faq.php?c=3&f=112 )");
+    sendnoticetouser(svc, np, "Sorry You do not meet the "
+          "requirements to request %s. Please Try again in an hour. "
+          "(see http://www.quakenet.org/faq/faq.php?c=1&f=239#239 )", RQ_QNICK);
 
     lr_scoretoolow++;
 
     return RQ_ERROR;
   }
 
-  sendmessagetouser(svc, lnick, "addchan %s #%s %s", cp->index->name->content,
+  
+  sendmessagetouser(svc, qnick, "addchan %s #%s +jp upgrade %s", cp->index->name->content,
         np->authname, np->nick);
 
-  sendnoticetouser(svc, np, "Requirements met, L should be added. Contact #help"
-        " should further assistance be required.");
+  sendnoticetouser(svc, np, "Requirements met, %s should be added. Contact #help"
+        " should further assistance be required.", RQ_QNICK);
 
   return RQ_OK;
 }
 
 void lr_requeststats(nick *rqnick, nick *np) {
-  sendnoticetouser(rqnick, np, "- No registered ops (L):          %d", lr_noregops);
-  sendnoticetouser(rqnick, np, "- Score too low (L):              %d", lr_scoretoolow);
-  sendnoticetouser(rqnick, np, "- Not in top%d (L):                %d", LR_TOPX, lr_top5);
-  sendnoticetouser(rqnick, np, "- Floods (L):                     %d", lr_floodattempts);
+  sendnoticetouser(rqnick, np, "- No registered ops (Q):          %d", lr_noregops);
+  sendnoticetouser(rqnick, np, "- Score too low (Q):              %d", lr_scoretoolow);
+  sendnoticetouser(rqnick, np, "- Not in top%d (Q):                %d", LR_TOPX, lr_top5);
+  sendnoticetouser(rqnick, np, "- Floods (Q):                     %d", lr_floodattempts);
 }