summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/whowas.h12
-rw-r--r--modules/core/m_kill.c4
-rw-r--r--modules/core/m_nick.c4
-rw-r--r--modules/m_svsnick.c2
-rw-r--r--src/client.c6
-rw-r--r--src/whowas.c6
6 files changed, 17 insertions, 17 deletions
diff --git a/include/whowas.h b/include/whowas.h
index 2b6bfbd..42fa7e4 100644
--- a/include/whowas.h
+++ b/include/whowas.h
@@ -50,29 +50,29 @@ struct Whowas
extern void whowas_init(void);
/*
-** add_history
+** whowas_add_history
** Add the currently defined name of the client to history.
** usually called before changing to a new name (nick).
** Client must be a fully registered user.
*/
-extern void add_history(struct Client *, const int);
+extern void whowas_add_history(struct Client *, const int);
/*
-** off_history
+** whowas_off_history
** This must be called when the client structure is about to
** be released. History mechanism keeps pointers to client
** structures and it must know when they cease to exist. This
** also implicitly calls AddHistory.
*/
-extern void off_history(struct Client *);
+extern void whowas_off_history(struct Client *);
/*
-** get_history
+** whowas_get_history
** Return the current client that was using the given
** nickname within the timelimit. Returns NULL, if no
** one found...
*/
-extern struct Client *get_history(const char *, time_t);
+extern struct Client *whowas_get_history(const char *, time_t);
/*
** for debugging...counts related structures stored in whowas array.
diff --git a/modules/core/m_kill.c b/modules/core/m_kill.c
index c96db23..f09f8b5 100644
--- a/modules/core/m_kill.c
+++ b/modules/core/m_kill.c
@@ -107,7 +107,7 @@ mo_kill(struct Client *client_p, struct Client *source_p,
* rewrite the KILL for this new nickname--this keeps
* servers in synch when nick change and kill collide
*/
- if ((target_p = get_history(user,
+ if ((target_p = whowas_get_history(user,
(time_t)ConfigFileEntry.kill_chase_time_limit))
== NULL)
{
@@ -227,7 +227,7 @@ ms_kill(struct Client *client_p, struct Client *source_p,
*/
if (IsDigit(*user)) /* Somehow an uid was not found in the hash ! */
return;
- if ((target_p = get_history(user,
+ if ((target_p = whowas_get_history(user,
(time_t)ConfigFileEntry.kill_chase_time_limit))
== NULL)
{
diff --git a/modules/core/m_nick.c b/modules/core/m_nick.c
index 6cdf91a..aaedb30 100644
--- a/modules/core/m_nick.c
+++ b/modules/core/m_nick.c
@@ -231,7 +231,7 @@ change_local_nick(struct Client *source_p, const char *nick)
sendto_common_channels_local(source_p, 1, 0, ":%s!%s@%s NICK :%s",
source_p->name, source_p->username,
source_p->host, nick);
- add_history(source_p, 1);
+ whowas_add_history(source_p, 1);
sendto_server(source_p, CAP_TS6, NOCAPS,
":%s NICK %s :%lu",
@@ -325,7 +325,7 @@ nick_from_server(struct Client *client_p, struct Client *source_p, int parc,
source_p->name,source_p->username,
source_p->host, nick);
- add_history(source_p, 1);
+ whowas_add_history(source_p, 1);
sendto_server(client_p, CAP_TS6, NOCAPS,
":%s NICK %s :%lu",
ID(source_p), nick, (unsigned long)source_p->tsinfo);
diff --git a/modules/m_svsnick.c b/modules/m_svsnick.c
index 4847cbd..49a4f24 100644
--- a/modules/m_svsnick.c
+++ b/modules/m_svsnick.c
@@ -102,7 +102,7 @@ ms_svsnick(struct Client *client_p, struct Client *source_p,
target_p->name, target_p->username,
target_p->host, parv[2]);
- add_history(target_p, 1);
+ whowas_add_history(target_p, 1);
sendto_server(NULL, CAP_TS6, NOCAPS,
":%s NICK %s :%lu",
diff --git a/src/client.c b/src/client.c
index 7164a12..7e63c03 100644
--- a/src/client.c
+++ b/src/client.c
@@ -539,7 +539,7 @@ find_chasing(struct Client *client_p, struct Client *source_p, const char *user,
if (IsDigit(*user))
return NULL;
- if ((who = get_history(user,
+ if ((who = whowas_get_history(user,
(time_t)ConfigFileEntry.kill_chase_time_limit))
== NULL)
{
@@ -662,8 +662,8 @@ exit_one_client(struct Client *source_p, const char *quitmsg)
DLINK_FOREACH_SAFE(lp, next_lp, source_p->channel.head)
remove_user_from_channel(lp->data);
- add_history(source_p, 0);
- off_history(source_p);
+ whowas_add_history(source_p, 0);
+ whowas_off_history(source_p);
watch_check_hash(source_p, RPL_LOGOFF);
diff --git a/src/whowas.c b/src/whowas.c
index 550d461..326d7d3 100644
--- a/src/whowas.c
+++ b/src/whowas.c
@@ -45,7 +45,7 @@ whowas_init(void)
}
void
-add_history(struct Client *client_p, const int online)
+whowas_add_history(struct Client *client_p, const int online)
{
static unsigned int whowas_next = 0;
struct Whowas *who = &WHOWAS[whowas_next];
@@ -84,7 +84,7 @@ add_history(struct Client *client_p, const int online)
}
void
-off_history(struct Client *client_p)
+whowas_off_history(struct Client *client_p)
{
dlink_node *ptr = NULL, *ptr_next = NULL;
@@ -98,7 +98,7 @@ off_history(struct Client *client_p)
}
struct Client *
-get_history(const char *nick, time_t timelimit)
+whowas_get_history(const char *nick, time_t timelimit)
{
dlink_node *ptr = NULL;