1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 16:23:13 +02:00

- Cosmetic 'stats /zip' output change (#0001435).

- Made services admins able to see on which channel services bots are, just
  like a netadmins can, suggested by EviL_SmUrF (#0001481).
This commit is contained in:
Bram Matthys
2004-02-01 19:52:47 +00:00
parent 96925ef9b4
commit 094acdf25c
4 changed files with 6 additions and 3 deletions
+3
View File
@@ -2780,3 +2780,6 @@ seen. gmtime warning still there
- Added HOOKTYPE_TKL_EXCEPT (arg: cptr, tkline) which is called from find_tkline_match
and find_tkline_match_zap. This can be used to add custom TKL exceptions.
- Fixed possible compile bug (caused by HOOKTYPE_TKL_EXCEPT).
- Cosmetic 'stats /zip' output change (#0001435).
- Made services admins able to see on which channel services bots are, just
like a netadmins can, suggested by EviL_SmUrF (#0001481).
+1 -1
View File
@@ -209,7 +209,7 @@ DLLFUNC int m_whois(aClient *cptr, aClient *sptr, int parc, char *parv[])
showchannel = 1;
if ((acptr->umodes & UMODE_HIDEWHOIS) && !IsMember(sptr, chptr) && !IsAnOper(sptr))
showchannel = 0;
if (IsServices(acptr) && !IsNetAdmin(sptr))
if (IsServices(acptr) && !IsNetAdmin(sptr) && !IsSAdmin(sptr))
showchannel = 0;
if (acptr == sptr)
showchannel = 1;
+1 -1
View File
@@ -1563,7 +1563,7 @@ CMD_FUNC(m_netinfo)
#ifdef ZIP_LINKS
if ((MyConnect(cptr)) && (IsZipped(cptr)) && cptr->zip->in->total_out && cptr->zip->out->total_in) {
sendto_realops
("Zipstats for link to %s: decompressed (in): %01lu/%01lu (%3.1f%%), compressed (out): %01lu/%01lu (%3.1f%%)",
("Zipstats for link to %s: decompressed (in): %01lu=>%01lu (%3.1f%%), compressed (out): %01lu=>%01lu (%3.1f%%)",
get_client_name(cptr, TRUE),
cptr->zip->in->total_in, cptr->zip->in->total_out,
(100.0*(float)cptr->zip->in->total_in) /(float)cptr->zip->in->total_out,
+1 -1
View File
@@ -1356,7 +1356,7 @@ int stats_zip(aClient *sptr, char *para)
if (acptr->zip->in->total_out && acptr->zip->out->total_in)
{
sendto_one(sptr,
":%s %i %s :Zipstats for link to %s (compresslevel %d): decompressed (in): %01lu/%01lu (%3.1f%%), compressed (out): %01lu/%01lu (%3.1f%%)",
":%s %i %s :Zipstats for link to %s (compresslevel %d): decompressed (in): %01lu=>%01lu (%3.1f%%), compressed (out): %01lu=>%01lu (%3.1f%%)",
me.name, RPL_TEXT, sptr->name, get_client_name(acptr, TRUE),
acptr->serv->conf->compression_level ?
acptr->serv->conf->compression_level : ZIP_DEFAULT_LEVEL,