[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dragonmtn-commits] Changes to snowwhite/chanserv.c
From: |
Mark Loeser |
Subject: |
[Dragonmtn-commits] Changes to snowwhite/chanserv.c |
Date: |
Tue, 12 Apr 2005 02:18:31 -0400 |
Index: snowwhite/chanserv.c
diff -u snowwhite/chanserv.c:1.2 snowwhite/chanserv.c:1.3
--- snowwhite/chanserv.c:1.2 Thu Apr 7 01:37:00 2005
+++ snowwhite/chanserv.c Tue Apr 12 06:18:29 2005
@@ -9,7 +9,7 @@
* \wd \taz \greg \mysid
* \date 1996-2001
*
- * $Id: chanserv.c,v 1.2 2005/04/07 01:37:00 Halcy0n Exp $
+ * $Id: chanserv.c,v 1.3 2005/04/12 06:18:29 Halcy0n Exp $
*/
/*
@@ -173,9 +173,6 @@
{ "getpass", cs_getpass, 0, LOG_NO, CMD_REG, 5},
{ "setpass", cs_setpass, 0, LOG_NO, CMD_REG, 5},
{ "setrealpass", cs_setrealpass, OOPER, LOG_OK, CMD_REG, 5},
-#ifndef NOGRPCMD
- { "getrealpass",cs_getrealpass, 0, LOG_NO, CMD_REG, 5},
-#endif
{ "save", cs_save, 0, LOG_NO, CMD_REG, 15},
{ "unban", cs_unban, 0, LOG_NO, CMD_REG, 5},
{ "invite", cs_invite, 0, LOG_NO, CMD_REG, 3},
@@ -6309,65 +6306,6 @@
}
/*--------------------------------------------------------------------*/
-/* Debug command: Get the value of the password struct */
-
-/**
- * \cscmd Getrealpass
- * \plr This command is slated for removal and now only exists to debug
- * the new implementation of passwords. -Mysid
- * \warning Do not use.
- */
-CCMD(cs_getrealpass)
-{
- char *from = nick->nick;
- RegChanList *chan;
-
-
- if (!isRoot(nick)) {
- sSend(":%s NOTICE %s :Access denied", ChanServ, from);
- return RET_NOPERM;
- }
-
- if (!opFlagged(nick, OROOT | OVERRIDE)) {
- sSend(":%s NOTICE %s :Restricted -- getrealpass is a debugging
and administrative command not for password recovery.",
- ChanServ, from);
- return RET_NOPERM;
- }
-
- if (numargs != 2) {
- sSend(":%s NOTICE %s :Must supply a channel name", ChanServ,
from);
- return RET_SYNTAX;
- }
-
- chan = getRegChanData(args[1]);
-
- if (chan == NULL) {
- sSend(":%s NOTICE %s :%s is not registered", ChanServ, from,
- args[1]);
- return RET_NOTARGET;
- }
-
- sSend(":%s GLOBOPS :%s used getrealpass on %s", ChanServ, from,
- chan->name);
- if (!(chan->flags & CENCRYPT))
- sSend(":%s NOTICE %s :The password for %s is %s", ChanServ,
from,
- args[1], chan->password);
- else {
- u_char *p = toBase64(chan->password, 16);
-
- sSend(":%s NOTICE %s :The password for %s is encrypted: %s",
ChanServ, from,
- args[1], md5_printable(chan->password));
- if (p) {
- sSend(":%s NOTICE %s :Base64 representation: $%s",
ChanServ, from,
- p);
- FREE(p);
- }
- }
- operlog->log(nick, CS_GETREALPASS, args[1]);
- return RET_OK;
-}
-
-/*--------------------------------------------------------------------*/
/**
* \cscmd Invite
@@ -7156,5 +7094,5 @@
/*--------------------------------------------------------------------*/
-/* $Id: chanserv.c,v 1.2 2005/04/07 01:37:00 Halcy0n Exp $ */
+/* $Id: chanserv.c,v 1.3 2005/04/12 06:18:29 Halcy0n Exp $ */