? .hg
? 2010.08.03
? SQLServerIntroduction.docx.ps
? aclocal.m4
? allow_insane_bans.patch
? autom4te.cache
? bcn.ircd.motd
? cache
? config.settings.bac
? config.settings.system
? gwz-windows-loadmodule-patch2.patch
? gwz-windows-nogencert.patch
? hidle.patch
? ircd.log
? ircd.pid
? ircd.tune
? location.conf
? motd.txt
? nopost-1.1
? nopost.tar.gz
? patch1.patch
? robots.txt
? server.cert.pem
? server.key.pem
? server.req.pem
? smotd.txt
? tmp
? unrealircd.conf
? valgrind.unreal.suppress
? autoconf/acinclude.m4
? doc/AntiRandom
? extras/c-ares
? extras/c-ares-1.6.0
? extras/c-ares-1.7.3
? extras/c-ares-1.7.3.tar.gz.asc
? extras/c-ares.tar
? extras/regexp
? extras/tre-0.7.5
? extras/tre-0.8.0
? extras/tre.tar
? ircdcron/ircd.cron
? src/modules/antirandom.c
? src/modules/callerid.c
? src/modules/m_dnsbl.tar.gz
? src/modules/m_gqline.c
? src/modules/m_soper.c
? src/modules/nopost-1.1
? src/modules/nopost.tar.gz
? src/modules/testchanmodehook.c
Index: include/numeric.h
===================================================================
RCS file: /cvs/unreal/include/numeric.h,v
retrieving revision 1.1.1.1.6.1.2.20.2.13
diff -u -B -r1.1.1.1.6.1.2.20.2.13 numeric.h
--- include/numeric.h	6 Dec 2009 16:59:15 -0000	1.1.1.1.6.1.2.20.2.13
+++ include/numeric.h	15 Dec 2010 18:25:17 -0000
@@ -192,6 +192,7 @@
 #define RPL_USERIP	     340
 #define RPL_INVITING         341
 #define	RPL_SUMMONING        342
+#define RPL_INVITED          345 
 
 #define RPL_VERSION          351
 
Index: src/s_err.c
===================================================================
RCS file: /cvs/unreal/src/s_err.c,v
retrieving revision 1.1.1.1.6.1.2.52.2.21
diff -u -B -r1.1.1.1.6.1.2.52.2.21 s_err.c
--- src/s_err.c	6 Dec 2009 16:52:52 -0000	1.1.1.1.6.1.2.52.2.21
+++ src/s_err.c	15 Dec 2010 18:25:17 -0000
@@ -382,7 +382,7 @@
 /* 342    RPL_SUMMONING */ ":%s 342 %s %s :User summoned to irc",
 /* 343 */ NULL,
 /* 344 */ NULL,
-/* 345 */ NULL, /* gamesurge */
+/* 345    RPL_INVITED */ ":%s 345 %s %s %s :%s has been invited by %s", /* gamesurge */
 /* 346    RPL_INVEXLIST */ ":%s 346 %s %s %s %s %lu",
 /* 347    RPL_ENDOFINVEXLIST */ ":%s 347 %s %s :End of Channel Invite List",
 /* 348    RPL_EXLIST */ ":%s 348 %s %s %s %s %lu",
Index: src/modules/m_invite.c
===================================================================
RCS file: /cvs/unreal/src/modules/Attic/m_invite.c,v
retrieving revision 1.1.2.2.2.7
diff -u -B -r1.1.2.2.2.7 m_invite.c
--- src/modules/m_invite.c	13 Nov 2010 19:23:05 -0000	1.1.2.2.2.7
+++ src/modules/m_invite.c	15 Dec 2010 18:25:17 -0000
@@ -324,14 +324,16 @@
                 		sendto_channelprefix_butone(NULL, &me, chptr, PREFIX_OP|PREFIX_ADMIN|PREFIX_OWNER,
 		                  ":%s NOTICE @%s :OperOverride -- %s invited him/herself into the channel.",
                 		  me.name, chptr->chname, sptr->name);
-		        else if (over == 0)
-		                sendto_channelprefix_butone(NULL, &me, chptr, PREFIX_OP|PREFIX_ADMIN|PREFIX_OWNER,
-                		  ":%s NOTICE @%s :%s invited %s into the channel.",
-		                  me.name, chptr->chname, sptr->name, acptr->name);
+
+			/* inform channel ops that an invitation was made */
+			sendto_channelprefix_butone(NULL, sptr, chptr, PREFIX_OP|PREFIX_ADMIN|PREFIX_OWNER,
+						    getreply(RPL_INVITED),
+						    me.name, chptr->chname, acptr->name, sptr->name, acptr->name, sptr->name);
 
 		        add_invite(acptr, chptr);
 			}
 	}
+	/* inform the invitee that he's invited */
 	if (!is_silenced(sptr, acptr))
 		sendto_prefix_one(acptr, sptr, ":%s INVITE %s :%s", parv[0],
 			acptr->name, ((chptr) ? (chptr->chname) : parv[2]));
