it seems to stuck in this section:
Code: Select all
while (params[0]) {
par = newsplit(¶ms);
// check if param is a timerange
if ((tmp = get_timerange(par)) != T_ERROR)
timerange = tmp;
// still no match? Then lets check if the param
// is a range (top10, top20, etc...)
else if ((tmp = atoi(par)))
range = tmp;
// still no match? Uhm... ok, maybe this is a
else if ((tmp = slangtypetoi(par)) != T_ERROR) {
itype = tmp;
if (itype == T_WORD) {
word = newsplit(¶ms);
}
type = par;
} else
debug1("Unknown parameter: %s", par);
}
the cause why i think it is here, is when i use !top without any options, it will normal output. if i use !top today it still gives output, but when i use !top top10 oder !top modes oder something like this, the bot will stuck in loop and timeout so i have to kill the prozess.
PS: uncomment the 2 lines
Code: Select all
else if ((tmp = atoi(par)))
range = tmp;