PM shown in main
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

PM shown in main

Started by jiten, 20 April, 2004, 16:45:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jiten

how can i change this script, so that the PM is shown in a new window and not in main? i'm using oDC 5.21 and this is what happens:

[16:42] Private message from ?bot?: You have not reached the minimum share ammount of 1 GB.
[16:42] Private message from ?bot?: Hint: Go to File - Settings - Sharing and then click on 'Add Folder' in order to reach the minimum share.
[16:43] // Type !help in main for your available commands!


-- the code is below

botname = "?bot?"
minShareGB = 1

kb = 1024
mb = kb*kb
gb = kb*kb*kb
minShare = minShareGB * gb

function Main()
frmHub:RegBot(BotName)
end

function NewUserConnected(user)
local t = tokenize(user.sMyInfoString,"$")
local num = t[getn(t)]

if tonumber( num ) < minShare then
user:SendPM(botname, "You have not reached the minimum share ammount of "..minShareGB.." GB.")
user:SendPM(botname, "Hint: Go to File - Settings - Sharing and then click on 'Add Folder' in order to reach the minimum share.")

end
end

function tokenize (inString,token)
_WORDS = {}
local matcher = "([^"..token.."]+)"
gsub(inString, matcher, function (w) tinsert(_WORDS,w) end)
return _WORDS
end

10togo

QuotePM shown in main

change
frmHub:RegBot(BotName)
in this
frmHub:RegBot(botname)

??????Hawk??????

hi m8  

the script is set to show in new window...

you need to change you client settings in advanced.

tick .  pop up private messages from users that are not on line
tick. pop up private messages.
untick . ignore private messages from users that are not online

Skrollster

do as 10togo wrote and everything will be fine...

jiten

well, i changed my DC's settings just like Hawk said and it worked.

Vntalk

if you could create a bot that can allow OP to read users PM that would be great

Yokozuna

Quoteif you could create a bot that can allow OP to read users PM that would be great

Vntalk, it is possible but it should not be done !
It would be spying and a deep cut into privacy of every user.
No support from my side !


Yokozuna

(uk-kingdom)John

Those bots are already out.. let users find out your doing that and you will lose everyone.. Its private messaging not monitored messaging..

pHaTTy

QuoteOriginally posted by Vntalk
if you could create a bot that can allow OP to read users PM that would be great

dont ask such a thing, or ya'll have ur head cut off in ere =)
Resistance is futile!

[NL]Pur

Quotewell, i changed my DC's settings just like Hawk said and it worked.

i think you didn't solve it there, now it only works for you and not the other ppl in the hub.

SMF spam blocked by CleanTalk