summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-02-28 20:33:31 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-02-28 20:33:31 +0000
commit8d15178d62ea6028c51ee39f0e810865423cd73c (patch)
treeddfa06037504ac224cc7e5eb00cbeac3b3f2fb20
parent6f646ff5b0066fc9cc838f06d00b719aeb12a9f9 (diff)
- Renamed ts_warn() to sendto_realops_flags_ratelimited()
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3077 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--include/send.h2
-rw-r--r--modules/core/m_nick.c2
-rw-r--r--src/send.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/send.h b/include/send.h
index ed75187..a536e86 100644
--- a/include/send.h
+++ b/include/send.h
@@ -92,7 +92,7 @@ extern void sendto_realops_flags(unsigned int, int, int,
const char *, ...) AFP(4,5);
extern void sendto_wallops_flags(unsigned int, struct Client *,
const char *, ...) AFP(3,4);
-extern void ts_warn(const char *, ...) AFP(1,2);
+extern void sendto_realops_flags_ratelimited(const char *, ...) AFP(1,2);
extern void sendto_anywhere(struct Client *, struct Client *,
const char *,
diff --git a/modules/core/m_nick.c b/modules/core/m_nick.c
index ad2d87e..8e81721 100644
--- a/modules/core/m_nick.c
+++ b/modules/core/m_nick.c
@@ -283,7 +283,7 @@ nick_from_server(struct Client *client_p, struct Client *source_p, int parc,
else
{
newts = source_p->tsinfo = CurrentTime;
- ts_warn("Remote nick %s (%s) introduced without a TS", nick, parv[0]);
+ sendto_realops_flags_ratelimited("Remote nick %s (%s) introduced without a TS", nick, parv[0]);
}
strlcpy(source_p->svid, svsid, sizeof(source_p->svid));
diff --git a/src/send.c b/src/send.c
index 48929fc..d2040ba 100644
--- a/src/send.c
+++ b/src/send.c
@@ -921,7 +921,7 @@ sendto_wallops_flags(unsigned int flags, struct Client *source_p,
* (at most 5 warnings every 5 seconds)
*/
void
-ts_warn(const char *pattern, ...)
+sendto_realops_flags_ratelimited(const char *pattern, ...)
{
va_list args;
char buffer[IRCD_BUFSIZE];