PDA

View Full Version : [Fixed] ioB2 colours error


oldhouse
09-05-2005, 02:23 AM
Hi. I am trying to edit skin, in IOBANANA section i write set ioBmsg(activity) "\[[c]%colour[b]BW[b][c]\]
and the result in channel looks like this:
[%colourBW] Up:
How can i fix this?

oslike
09-05-2005, 05:51 PM
Try

"\[[c]%colour[b]BW[b][c]\]" (closing " was missing)
or

"\[[c]%colour [b]BW[b][c]\] and check if it replaces cookie then

os

oldhouse
09-06-2005, 12:35 PM
that's not the problem since brackets are closed at the end of the line...

Mouton
09-06-2005, 06:55 PM
That's a bug. ioBmsg(activity) is never parsed for the %colour, %section and %sitename variables.

If you want to fix yourself, find this in ioBanana.tcl:

set output $ioBmsg(activity)

then some lines below:

ioB:tsend chan $chan $output

Above that line, add one with:

set output [ioB:basicreplace "BW" $output]

Save, .rehash your sitebot, and marvel.

oldhouse
09-07-2005, 02:14 AM
Thx. Solution is ok for bw command but same problem persist with all other commands in that section, like uploaders, idlers, and downloaders.

According to your suggestions i added these lines too:
set output [ioB:basicreplace "SPEED" $output] under "speed" section.


set output [ioB:basicreplace "UPLOADERS" $output]
set output [ioB:basicreplace "DOWNLOADERS" $output]
set output [ioB:basicreplace "IDLERS" $output]
in "usage" section.

Hope it will be fixed in new version.

Harm
09-07-2005, 01:37 PM
Actually, this was by design. I don't use those cookies for those announces so I've never added support for them. Now that I can see there's a need for it, you can be sure it'll be added soon.

PS: In fact, I've just added support for the %sitename and %colour cookies for almost all announces. The only ones left are those that do not support any cookies. I will wait for a few more changes before releasing a new version though.

oldhouse
09-08-2005, 01:56 AM
Nice to hear. Thx.

ko0ky
09-11-2005, 10:51 PM
I miss seeing what bw is doing in the !uploaders or !leechers (now !up and !dn) cmds. older version of iobanana use to display list of users and their bw on the site. Now with the new version is still displays the users of course but instead gives a total BW instead of a break down of who's using what in terms of bandwidth. Will we ever see the breakdown again?

Harm
09-12-2005, 01:47 AM
The !who command is still available. I might add a per-user bw cookie in the future. It was removed because I noticed the reply to the !up and !dn commands was pretty long when there was a lot of users online. I need to figure out how to avoid spamming the channel first.. or perhaps I will allow the users to use the cookie but won't add it to the default skins. Stay tuned :) If you have any idea/comment about this, let me know.