[IRC-Dev CVS] SF.net SVN: irc-dev:[201] ircd/trunk
Brought to you by:
zolty
|
From: <zo...@us...> - 2008-08-15 20:42:56
|
Revision: 201
http://irc-dev.svn.sourceforge.net/irc-dev/?rev=201&view=rev
Author: zolty
Date: 2008-08-15 20:43:04 +0000 (Fri, 15 Aug 2008)
Log Message:
-----------
Transicion RENAME a SVSNICK
Modified Paths:
--------------
ircd/trunk/include/msg.h
ircd/trunk/ircd/m_svsnick.c
ircd/trunk/ircd/parse.c
Modified: ircd/trunk/include/msg.h
===================================================================
--- ircd/trunk/include/msg.h 2008-08-15 20:28:43 UTC (rev 200)
+++ ircd/trunk/include/msg.h 2008-08-15 20:43:04 UTC (rev 201)
@@ -389,9 +389,15 @@
#define MSG_SVSNICK "SVSNICK" /* SVSN */
#define TOK_SVSNICK "SN"
#define CMD_SVSNICK MSG_SVSNICK, TOK_SVSNICK
+#if 1 /* TRANSICION IRC-HISPANO */
+#define MSG_RENAME "RENAME" /* SVSN */
+#define TOK_RENAME "RENAME"
+#define CMD_RENAME MSG_RENAME, TOK_RENAME
+#endif
+
/*
* Constants
*/
Modified: ircd/trunk/ircd/m_svsnick.c
===================================================================
--- ircd/trunk/ircd/m_svsnick.c 2008-08-15 20:28:43 UTC (rev 200)
+++ ircd/trunk/ircd/m_svsnick.c 2008-08-15 20:43:04 UTC (rev 201)
@@ -66,8 +66,18 @@
assert(0 != IsServer(cptr));
- if (parc < 2)
+#if 1 /* TRANSICION IRC-HISPANO */
+ if (parc == 2)
+ {
+ parv[2] = "*";
+ parc = 3;
+ }
+ else if (parc < 2)
return 0;
+#else
+ if (parc < 3)
+ return 0;
+#endif
if (!cli_uworld(sptr))
{
@@ -78,7 +88,11 @@
return 0;
}
+#if 1 /* TRANSICION IRC-HISPANO */
+ sendcmdto_serv(sptr, feature_bool(FEAT_TRANSICION_HISPANO) ? CMD_RENAME : CMD_SVSNICK, cptr, "%s :%s", parv[1], parv[2]);
+#else
sendcmdto_serv(sptr, CMD_SVSNICK, cptr, "%s :%s", parv[1], parv[2]);
+#endif
acptr = findNUser(parv[1]);
Modified: ircd/trunk/ircd/parse.c
===================================================================
--- ircd/trunk/ircd/parse.c 2008-08-15 20:28:43 UTC (rev 200)
+++ ircd/trunk/ircd/parse.c 2008-08-15 20:43:04 UTC (rev 201)
@@ -678,6 +678,15 @@
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
{ m_ignore, m_ignore, ms_svsnick, m_ignore, m_ignore }
},
+#if 1 /* TRANSICION IRC-HISPANO */
+ {
+ "RENAME",
+ "RENAME",
+ 0, MAXPARA, MFLG_SLOW, 0, NULL,
+ /* UNREG, CLIENT, SERVER, OPER, SERVICE */
+ { m_ignore, m_ignore, ms_svsnick, m_ignore, m_ignore }
+ },
+#endif
#endif
/* This command is an alias for QUIT during the unregistered part of
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|