diff options
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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,"<Config>",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,"<Config>",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,"<Config>",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,"<Config>",reason,host); conf->GetInstance()->Log(DEBUG,"Read E line (exception tag): host=%s reason=%s",host,reason); |