[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IRCop



On Fri, Mar 30, 2001 at 09:38:22PM +0200, Frank Altpeter wrote:
> 
> Hello !
> 
> Eduardo Ferrari wrote on 30.03.2001 15:23:00 -0300:
> > Christophe
> 
> > I'm having some problems....
> > I want to hide the local channels to be listed at
> > /list command.
> Join local channels and make "/mode +s". The 'server' channels like
> &notices, &kills and so on cannot be made invisible.
They can, edit ircd/channel.c and make line 563 looking like
    smode = MODE_MODERATED|MODE_TOPICLIMIT|MODE_NOPRIVMSGS|MODE_ANONYMOUS|
            MODE_QUIET|MODE_SECRET; 
	    (ie, add |MODE_SECRET);
> 
> > And I've already put in my O-line this hostmask: O:*@*.*:
> > edusoft:Ferrari:AOH:10 but when I try to type the command: /oper Ferrari
> > edusoft I got an message Password Incorrect. What da hell is going on this ?
> I think you have compiled in CRYPT_OPERPASSWORD in your config.h ... so
> you need to use crypted password in your O-line.
> 
> I suggest you re-read the example.conf and the files in the DOC
> directory of the ircd sources.
And I suggest you changing your oper password and restricting hostmask. :)
> 
> > My another question is how to block DCC Send connection between the
> > users, is that possible ?
> No. Impossible. If it would be possible, the term "DIRECT client to
> client" connection would be correct anymore.
DCC negotiation goes via CTCP
quick hack (isn't best, but may work)

--- s_user.c    Wed Jun  7 00:35:12 2000
+++ s_user-nodcc.c      Fri Mar 30 21:52:23 2001
@@ -1104,6 +1104,18 @@
 
	if (MyConnect(sptr))
		parv[1] = canonize(parv[1]);
+
+       if (MyConnect(sptr))
+       {
+               if (*parv[2],'\001') /* possible CTCP */
+               {
+                       if (!strncmp(parv[2]+1,"DCC SEND",8))
+                       {       /* DCC SEND -> reject it */
+                               return 1;
+                       }
+               }
+       }
+

JV 
> [...]