diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/m_kill.c | 4 | ||||
-rw-r--r-- | modules/core/m_squit.c | 2 | ||||
-rw-r--r-- | modules/m_dline.c | 4 | ||||
-rw-r--r-- | modules/m_kline.c | 2 | ||||
-rw-r--r-- | modules/m_stats.c | 2 | ||||
-rw-r--r-- | modules/m_testline.c | 6 |
6 files changed, 10 insertions, 10 deletions
diff --git a/modules/core/m_kill.c b/modules/core/m_kill.c index c70cbdc..434c906 100644 --- a/modules/core/m_kill.c +++ b/modules/core/m_kill.c @@ -80,7 +80,7 @@ mo_kill(struct Client *client_p, struct Client *source_p, const char *inpath = client_p->name; char *user; char *reason; - char def_reason[] = "No reason"; + char def_reason[] = CONF_NOREASON; user = parv[1]; reason = parv[2]; /* Either defined or NULL (parc >= 2!!) */ @@ -191,7 +191,7 @@ ms_kill(struct Client *client_p, struct Client *source_p, char *user; char *reason; const char *path; - char def_reason[] = "No reason"; + char def_reason[] = CONF_NOREASON; if (EmptyString(parv[1])) { diff --git a/modules/core/m_squit.c b/modules/core/m_squit.c index fb15b3c..6fef291 100644 --- a/modules/core/m_squit.c +++ b/modules/core/m_squit.c @@ -51,7 +51,7 @@ mo_squit(struct Client *client_p, struct Client *source_p, dlink_node *ptr; char *comment; const char *server; - char def_reason[] = "No reason"; + char def_reason[] = CONF_NOREASON; if (parc < 2 || EmptyString(parv[1])) { diff --git a/modules/m_dline.c b/modules/m_dline.c index dd703fd..b1d4ab4 100644 --- a/modules/m_dline.c +++ b/modules/m_dline.c @@ -138,7 +138,7 @@ static void mo_dline(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { - char def_reason[] = "<No reason specified>"; + char def_reason[] = CONF_NOREASON; char *dlhost = NULL, *reason = NULL; char *target_server = NULL; const char *creason; @@ -274,7 +274,7 @@ static void ms_dline(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { - char def_reason[] = "<No reason specified>"; + char def_reason[] = CONF_NOREASON; char *dlhost, *reason; const char *creason; const struct Client *target_p = NULL; diff --git a/modules/m_kline.c b/modules/m_kline.c index 09430ea..b41e21c 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -276,7 +276,7 @@ already_placed_kline(struct Client *source_p, const char *luser, const char *lho { if (warn) { - reason = conf->reason ? conf->reason : "No reason"; + reason = conf->reason ? conf->reason : CONF_NOREASON; sendto_one(source_p, ":%s NOTICE %s :[%s@%s] already K-Lined by [%s@%s] - %s", me.name, source_p->name, luser, lhost, conf->user, diff --git a/modules/m_stats.c b/modules/m_stats.c index 94936c8..1edeba0 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -618,7 +618,7 @@ stats_glines(struct Client *source_p, int parc, char *parv[]) from, to, "G", conf->host ? conf->host : "*", conf->user ? conf->user : "*", - conf->reason ? conf->reason : "No reason"); + conf->reason ? conf->reason : CONF_NOREASON); } } } diff --git a/modules/m_testline.c b/modules/m_testline.c index f22b7b2..c5a9686 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -82,7 +82,7 @@ mo_testline(struct Client *client_p, struct Client *source_p, { sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, 'Q', 0, chptr->name, - chptr->reason ? chptr->reason : "No reason", ""); + chptr->reason ? chptr->reason : CONF_NOREASON, ""); return; } } @@ -157,7 +157,7 @@ mo_testline(struct Client *client_p, struct Client *source_p, conf->until ? 'k' : 'K', conf->until ? ((conf->until - CurrentTime) / 60) : 0L, - userhost, conf->reason? conf->reason : "No reason"); + userhost, conf->reason? conf->reason : CONF_NOREASON); ++matches; } } @@ -169,7 +169,7 @@ mo_testline(struct Client *client_p, struct Client *source_p, sendto_one(source_p, form_str(RPL_TESTLINE), me.name, source_p->name, 'Q', 0L, conf->name, - conf->reason ? conf->reason : "No reason");; + conf->reason ? conf->reason : CONF_NOREASON); ++matches; } |