From 004217daed4e60162bcb3f99c85e2efe41c21a03 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 14 Nov 2006 22:38:43 +0000 Subject: Tons of tweaks to the config stuff for the core git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5744 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index ce80f7880..746ad6388 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -52,40 +52,40 @@ bool DoneXLine(ServerConfig* conf, const char* tag) return true; } -bool DoZLine(ServerConfig* conf, const char* tag, char** entries, void** values, int* types) +bool DoZLine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types) { - char* reason = (char*)values[0]; - char* ipmask = (char*)values[1]; + const char* reason = values[0].GetString(); + const char* ipmask = values[1].GetString(); conf->GetInstance()->XLines->add_zline(0,"",reason,ipmask); conf->GetInstance()->Log(DEBUG,"Read Z line (badip tag): ipmask=%s reason=%s",ipmask,reason); return true; } -bool DoQLine(ServerConfig* conf, const char* tag, char** entries, void** values, int* types) +bool DoQLine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types) { - char* reason = (char*)values[0]; - char* nick = (char*)values[1]; + const char* reason = values[0].GetString(); + const char* nick = values[1].GetString(); conf->GetInstance()->XLines->add_qline(0,"",reason,nick); conf->GetInstance()->Log(DEBUG,"Read Q line (badnick tag): nick=%s reason=%s",nick,reason); return true; } -bool DoKLine(ServerConfig* conf, const char* tag, char** entries, void** values, int* types) +bool DoKLine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types) { - char* reason = (char*)values[0]; - char* host = (char*)values[1]; + const char* reason = values[0].GetString(); + const char* host = values[1].GetString(); conf->GetInstance()->XLines->add_kline(0,"",reason,host); conf->GetInstance()->Log(DEBUG,"Read K line (badhost tag): host=%s reason=%s",host,reason); return true; } -bool DoELine(ServerConfig* conf, const char* tag, char** entries, void** values, int* types) +bool DoELine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types) { - char* reason = (char*)values[0]; - char* host = (char*)values[1]; + const char* reason = values[0].GetString(); + const char* host = values[1].GetString(); conf->GetInstance()->XLines->add_eline(0,"",reason,host); conf->GetInstance()->Log(DEBUG,"Read E line (exception tag): host=%s reason=%s",host,reason); -- cgit v1.2.3