private messages are blocked?

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
WingNut
Posts: 5
Joined: 2006-01-28 09:05

private messages are blocked?

Post by WingNut » 2006-01-29 10:53

It seems to me that (some) private messages are blocked in version 0.6811 ?? Any other Version displays the private messages correctly, even if they have been sent by bots.

[16:49] <WingNut> +commands
[16:49] <[BOT]TheDuke> ADMIN COMMANDS ::
[16:49] <[BOT]TheDuke> OP COMMANDS ::
[16:49] <[BOT]TheDuke> USER COMMANDS ::
[16:49] <WingNut> +info
[16:49] <[BOT]TheDuke> USER INFO ::
[16:49] <WingNut> +rules
[16:49] <[BOT]TheDuke> RULES ::

Im using a patched opendchub...

thx

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2006-01-29 11:40

What is supposed to be shown?
The world is coming to an end. Please log off.

DC++ Guide | Words

bastya_elvtars
Posts: 164
Joined: 2005-01-06 08:39
Location: HU
Contact:

Post by bastya_elvtars » 2006-01-29 12:02

I have experienced such a problem with certain bots, and this holds me back from using 0.68xx. Just haven't investigated thoroughly, but will do.
Hey you, / Don't help them to bury the light... / Don't give in / Without a fight. (Pink Floyd)

WingNut
Posts: 5
Joined: 2006-01-28 09:05

Older Versions show:

Post by WingNut » 2006-01-29 13:56

This is what I get with 0.674:

[19:45] <WingNut> +info
[19:45] <[BOT]TheDuke> USER INFO ::
[19:45]
[19:45] Nick :: WingNut.
[19:45] IP Address :: 212.201.85.141.
[19:45] Share size :: 85.4184617046267 GB.
[19:45] You are a registered user.
[19:45]

etc.

The script does:

Code: Select all

odch::data_to_user($user, "\$To: $nick From: $botname \$<$botname> USER INFO :: |");
odch::data_to_user($user, "\$To: $nick From: $botname \$ ");
odch::data_to_user($user, "\$To: $nick From: $botname \$ Nick :: $thisuser. |");
odch::data_to_user($user, "\$To: $nick From: $botname \$ IP Address :: $ip. |");
odch::data_to_user($user, "\$To: $nick From: $botname \$ Share size :: $share GB. |");
...

etc.
or in short: sends several messages to the user.

version 0.6811 only accepts the first message. all previous versions work fine.

Gabberworld
Posts: 9
Joined: 2004-11-02 12:42

Post by Gabberworld » 2006-01-29 19:34


odch::data_to_user($user, "\$To: $nick From: $botname \$ ");
this is fake, all messages should end with |

Good job DC++ makers :D

WingNut
Posts: 5
Joined: 2006-01-28 09:05

...

Post by WingNut » 2006-01-30 03:52

thanks for posting, but this is not a fake.

theres no difference if i change

Code: Select all

odch::data_to_user($user, "\$To: $nick From: $botname \$ ");
to

Code: Select all

odch::data_to_user($user, "\$To: $nick From: $botname \$ |");
I already tested this before and it doesnt explain why it works with the previous versions.

p.s. i also appreciate the work of the dc++ programmers, dc++ is the best client i know! so thank you all, guys.

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2006-01-30 04:40

Your code is flawed:

Example:

Code: Select all

$To: fusbar From: ovalNavelF23 $<ovalNavelF23> Hey fussie, have you checked the new photos i uploaded. Check out my new navel-piercing|
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Todi
Forum Moderator
Posts: 699
Joined: 2003-03-04 12:16
Contact:

Post by Todi » 2006-01-30 04:53

What fusbar bascially is saying, is that if DC++ sent that data through correctly in the past, that was a bug, and it's fixed now. Your script sends buggy messages.

WingNut
Posts: 5
Joined: 2006-01-28 09:05

very sorry

Post by WingNut » 2006-01-30 05:18

Im sorry, but I dont see any syntactical difference between fusbars and my message (except for my message containing no text but just a whitespace).
However the missing text doesnt seem to be the problem... i tested that.

What exactly are these bugs about (in the scripts and in the previous versions of dc++) ?

thanks for your support!
____
its not a bug - its a feature

Todi
Forum Moderator
Posts: 699
Joined: 2003-03-04 12:16
Contact:

Post by Todi » 2006-01-30 06:06

This is what your script sends, from what i can tell:
$To: $nick From: $botname $<$botname> USER INFO :: |
$To: $nick From: $botname $ |
$To: $nick From: $botname $ Nick :: $thisuser. |
$To: $nick From: $botname $ IP Address :: $ip. |
$To: $nick From: $botname $ Share size :: $share GB. |
This is what a correct PM looks like:
$To: <nick> From: <othernick> $<othernick> message|
Do you understand now why the first one comes through, but not the others? The syntax is incorrect, and they should correctly be ignored.

WingNut
Posts: 5
Joined: 2006-01-28 09:05

ah

Post by WingNut » 2006-01-30 07:53

:idea: now i understand :idea:

Thanks a lot! :wink:

Locked