"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/m_stats.c" between
bahamut-2.1.4.tar.gz and bahamut-2.1.5.tar.gz

About: Bahamut is an Internet Relay Chat Daemon (IRCd) designed for DALnet, one of the major IRC networks in the world.

m_stats.c  (bahamut-2.1.4):m_stats.c  (bahamut-2.1.5)
skipping to change at line 553 skipping to change at line 553
get_client_name(acptr, (IsUmodeH(acptr) && !IsAnOper(spt r))?HIDEME:TRUE), get_client_name(acptr, (IsUmodeH(acptr) && !IsAnOper(spt r))?HIDEME:TRUE),
(int) SBufLength(&acptr->sendQ), (int) SBufLength(&acptr->sendQ),
(int) acptr->sendM, (int) acptr->sendK, (int) acptr->sendM, (int) acptr->sendK,
(int) acptr->receiveM, (int) acptr->receiveK, (int) acptr->receiveM, (int) acptr->receiveK,
timeofday - acptr->firsttime, sincetime, timeofday - acptr->firsttime, sincetime,
IsServer(acptr) ? (DoesTS(acptr) ? IsServer(acptr) ? (DoesTS(acptr) ?
"TS" : "NoTS") : "-"); "TS" : "NoTS") : "-");
} }
else else
{ {
for (i = 0; i <= highest_fd; i++) if(!(confopts & FLAGS_SHOWLINKS) && !IsAnOper(sptr))
{
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
}
else for (i = 0; i <= highest_fd; i++)
{ {
if (!(acptr = local[i])) if (!(acptr = local[i]))
continue; continue;
if(!IsServer(acptr)) if(!IsServer(acptr))
continue; /* nothing but servers */ continue; /* nothing but servers */
#ifdef HIDEULINEDSERVS #ifdef HIDEULINEDSERVS
if(IsULine(acptr) && !IsAnOper(sptr)) if(IsULine(acptr) && !IsAnOper(sptr))
continue; continue;
#endif #endif
sincetime = (acptr->since > timeofday) ? 0 : sincetime = (acptr->since > timeofday) ? 0 :
skipping to change at line 896 skipping to change at line 900
time_t now; time_t now;
now = timeofday - me.since; now = timeofday - me.since;
sendto_one(sptr, rpl_str(RPL_STATSUPTIME), me.name, parv[0], sendto_one(sptr, rpl_str(RPL_STATSUPTIME), me.name, parv[0],
now / 86400, (now / 3600) % 24, (now / 60) % 60, now % 60); now / 86400, (now / 3600) % 24, (now / 60) % 60, now % 60);
break; break;
} }
case 'v': case 'v':
case 'V': case 'V':
show_servers(sptr, parv[0]); if(!(confopts & FLAGS_SHOWLINKS) && !IsAnOper(sptr))
{
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
}
else show_servers(sptr, parv[0]);
break; break;
#ifdef DEBUGMODE #ifdef DEBUGMODE
case 'w': case 'w':
case 'W': case 'W':
if(IsAnOper(sptr)) if(IsAnOper(sptr))
report_fds(sptr); report_fds(sptr);
else else
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]); sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
break; break;
skipping to change at line 938 skipping to change at line 946
break; break;
case 'z': case 'z':
if (IsAnOper(sptr)) if (IsAnOper(sptr))
report_memory_usage(sptr, 0); report_memory_usage(sptr, 0);
else else
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]); sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
break; break;
case '?': case '?':
serv_info(sptr, parv[0]); if(!(confopts & FLAGS_SHOWLINKS) && !IsAnOper(sptr))
{
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
}
else serv_info(sptr, parv[0]);
break; break;
default: default:
stat = '*'; stat = '*';
break; break;
} }
sendto_one(sptr, rpl_str(RPL_ENDOFSTATS), me.name, parv[0], stat); sendto_one(sptr, rpl_str(RPL_ENDOFSTATS), me.name, parv[0], stat);
return 0; return 0;
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)