mylog "pushmode $chan -b $victim" 3
Code: Select all
mylog [pushmode $chan -b $victim] 3
the underlined lines are exactly what mylog gives out ... and if you take a second look then you'll see that $victim is NOT the nick of the user who gets banned ...tiberius wrote:thats are the logs on the partyline
[19:09:46] <tibtestbot> [19:09] #t.d.p.: mode change '+b blu!pp@pop.de' by tiberius_!tiberius@netzlab.info
[19:09:47] <tibtestbot> [19:09] putkick #t.d.p. tiberius_ "> /mode #t.d.p. +b blu!pp@pop.de < > Sat Dec 13 19:09:37 2003 <"
[19:09:47] <tibtestbot> [19:09] pushmode #t.d.p. -b blu!pp@pop.de
[19:09:47] <tibtestbot> [19:09] tiberius_ kicked from #t.d.p. by tibtestbot: > /mode #t.d.p. +b blu!pp@pop.de < > Sat Dec 13 19:09:37 2003 <
Code: Select all
pushmode $chan -b $victim
isn't that what i just said ?tiberius wrote: $victim is NOT a users nick
$victim is the mask of the ban, which was set ...
so if someone sets /mode #chan +b bla!bla@bla.bla
then $victim would be bla!bla@bla.bla
just don't care about the name of the var ... IT IS THE MASK!!!
i already tried it some days before i got here and it worked fine ... but i intended to use the bots internal queue for processing modes ... because this would cause less lines to send to the server ... the bot is going to be a security bot, and so it has to work effective and not dump 'every' mode change in one line (which is done by putserv afaik) ... (and which can cause the bot to flood off the server) ... i also tried to easily use 'resetbans' but this floods the bot off the server (...too), when there are more than one user who sets bans ... so i'm in need to use pushmode -.-Sir_Fz wrote:Have you ever tried using putserv "MODE $chan -b $victim" ?
because there's nothing wrong in your code. the pushmode should work.
ehm, yeah, but ... it's uninteresting in this case ... the problem is, as i said, that the pushmode does not work for any reasons, and i just wanted to know why ...GodOfSuicide wrote:isn't that what i just said ? :P