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

Export tkl_type_string via efuncs (actually, the name may change...)

This commit is contained in:
Bram Matthys
2019-06-15 17:06:41 +02:00
parent 7542cdeaca
commit 876fda63ec
4 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -53,6 +53,7 @@ int m_tkl_line(aClient *cptr, aClient *sptr, int parc, char *parv[], char* type)
int _tkl_hash(unsigned int c);
char _tkl_typetochar(int type);
int _tkl_chartotype(char c);
char *_tkl_type_string(aTKline *tk);
aTKline *_tkl_add_line(int type, char *usermask, char *hostmask, char *reason, char *setby,
TS expire_at, TS set_at, TS spamf_tkl_duration, char *spamf_tkl_reason, MatchType match_type, int soft);
void _tkl_del_line(aTKline *tkl);
@@ -107,6 +108,7 @@ MOD_TEST(m_tkl)
EfunctionAdd(modinfo->handle, EFUNC_TKL_HASH, _tkl_hash);
EfunctionAdd(modinfo->handle, EFUNC_TKL_TYPETOCHAR, TO_INTFUNC(_tkl_typetochar));
EfunctionAdd(modinfo->handle, EFUNC_TKL_CHARTOTYPE, TO_INTFUNC(_tkl_chartotype));
EfunctionAddPChar(modinfo->handle, EFUNC_TKL_TYPE_STRING, _tkl_type_string);
EfunctionAddPVoid(modinfo->handle, EFUNC_TKL_ADD_LINE, TO_PVOIDFUNC(_tkl_add_line));
EfunctionAddVoid(modinfo->handle, EFUNC_TKL_DEL_LINE, _tkl_del_line);
EfunctionAddVoid(modinfo->handle, EFUNC_TKL_CHECK_LOCAL_REMOVE_SHUN, _tkl_check_local_remove_shun);
@@ -2033,7 +2035,7 @@ void _tkl_synch(aClient *sptr)
}
/** Show TKL type as a string (used when adding/removing) */
char *tkl_type_string(aTKline *tk)
char *_tkl_type_string(aTKline *tk)
{
static char txt[256];