Browse Source

* Export all cmds to auth system which have AUTH

Bryan Drewery 16 years ago
parent
commit
6141e1d406
1 changed files with 6 additions and 10 deletions
  1. 6 10
      src/mod/irc.mod/irc.c

+ 6 - 10
src/mod/irc.mod/irc.c

@@ -1650,23 +1650,19 @@ irc_minutely()
 }
 
 
-int check_bind_authc(char *cmd, Auth *auth, char *chname, char *args)
+int check_bind_authc(char *cmd, Auth *a, char *chname, char *par)
 {
   struct flag_record fr = { FR_GLOBAL | FR_CHAN, 0, 0, 0 };
   int x = 0;
 
-  get_user_flagrec(auth->user, &fr, chname);
-  x = check_bind(BT_msgc, cmd, &fr, auth, chname, args);
+  get_user_flagrec(a->user, &fr, chname);
 
-
-  if (x & BIND_RET_LOG) {
-    if (chname)
-      putlog(LOG_CMDS, "*", "(%s!%s) !%s! %s %c%s %s", auth->nick, auth->host, 
-                            auth->handle, chname, auth_prefix[0], cmd, args);
-    else
-      putlog(LOG_CMDS, "*", "(%s!%s) !%s! %c%s %s", auth->nick, auth->host, auth->handle, auth_prefix[0], cmd, args);
+  if (a->GetIdx(chname)) {
+    x = check_auth_dcc(a, cmd, par);
   }
 
+  LOGC(cmd);
+
   if (x & BIND_RET_BREAK)
     return (1);
   return (0);