From: Gabriel B. <sh...@us...> - 2006-01-02 20:26:35
|
Update of /cvsroot/solidircd/solidircd-stable/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26252/src Modified Files: m_stats.c s_user.c Log Message: minor updates. Index: s_user.c =================================================================== RCS file: /cvsroot/solidircd/solidircd-stable/src/s_user.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** s_user.c 27 Dec 2005 19:38:13 -0000 1.18 --- s_user.c 2 Jan 2006 20:26:22 -0000 1.19 *************** *** 35,39 **** #include <utmp.h> #include <fcntl.h> ! #include "h.h" #ifdef FLUD #include "blalloc.h" --- 35,39 ---- #include <utmp.h> #include <fcntl.h> ! #include "h.h" #ifdef FLUD #include "blalloc.h" *************** *** 2179,2185 **** a2cptr = acptr->uplink; ! /* The WHOIS Notice code has been ported from solid 2.2.20 from 1999 acient baby. * It was originaly written by Toshi Morita(tm2) ! * It has been slightly modified for solid3.4.7 by Sheik on 16/05/05 * */ --- 2179,2185 ---- a2cptr = acptr->uplink; ! /* The WHOIS Notice code has been ported from solid 2.2.20. * It was originaly written by Toshi Morita(tm2) ! * It has been slightly modified for solid-ircd3.4.7 by Sheik on 16/05/05 * */ *************** *** 3373,3377 **** #ifdef STRICT_HOSTMASK case 'v': /* Users Can't unset themselves +v*/ ! sendto_one(sptr, ":%s NOTICE %s :Permission denied, this network does not allow you to unset +v.", me.name, parv[0], sptr->user->host); break; --- 3373,3377 ---- #ifdef STRICT_HOSTMASK case 'v': /* Users Can't unset themselves +v*/ ! sendto_one(sptr, ":%s NOTICE %s :Permission denied, this network does not allow you to unset +v. For more information visit", WEBSITE, me.name, parv[0], sptr->user->host); break; Index: m_stats.c =================================================================== RCS file: /cvsroot/solidircd/solidircd-stable/src/m_stats.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** m_stats.c 4 Dec 2005 14:40:45 -0000 1.4 --- m_stats.c 2 Jan 2006 20:26:22 -0000 1.5 *************** *** 599,602 **** --- 599,615 ---- * single responce. Will work on this later -epi */ + + + /* Only Server Administrators should see this information -Sheik 02-jan-2006*/ + + #ifdef RESTRICT_C_LINES_ADMINONLY + if (!IsAdmin(sptr)) { + sendto_one(sptr, err_str(ERR_NOPRIVILEGES), + me.name, parv[0]); + return 0; + } + + #endif + #ifdef HIDEULINEDSERVS if (!IsAnOper(sptr)) |