linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #00932
[Bug 571178] Re: Ptokax string conversion on MSG
and yes :)
The file you attached works, and when editing with that Vim ( dang thats
a powerfull thing was already afraid i had to use a old hexeditor lol )
it keeps workig.
As far i could find there is only 1 lua still having probs with
Core.SendtoAll and thats the banner.lua
The below function acts like the above error in post 6, its like the
pipe is not ended for the client
SendBanner = function(user,advert)
if user and advert then
local n,b,s,ml = user.sNick,"\r\n",BdrChr
local b1 = b:rep(2)..s:rep(RepShort).." Banner by "..n.." "..s:rep(RepLong)..b:rep(2)
local b2 = b:rep(2)..s:rep(RepLong).." Banner by "..n.." "..s:rep(RepShort)..b:rep(2)
local ret = ""
for line in advert:gmatch("([^\r\n]+)") do
if not ml then ml = true end
ret = ret..Spacer(line,b1:len())..line..b
end
if ml then ret = ret:sub(1,-3) else ret = Spacer(advert,b1:len())..advert end
return Core.SendToAll("<"..Bot.."> "..b1..ret..b2.."|")
end
end
--
Ptokax string conversion on MSG
https://bugs.launchpad.net/bugs/571178
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.
Status in ADCH++: Invalid
Status in Bridge to run PtokaX scripts on ADCH++: New
Bug description:
When the Ptokax bot sends a nmdc msg containing the " \t " it gets translated to a adc string containing empty spaces what the client does not display in chat.
example received by client : BMSG BHUQ \n ====================================================================================================\n -\sListing\sAll\sReleases\s-\n --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n ID Genre Release
\n
\n ID:\s1 Hard\sRock test-album\s//\sAdded\sby\sPirre\sat\s28/04/2010\s09:41:59
\n\n
\n
\n
Was wondering where those msg's stayed lol
References