General Bot PM
Moderator: Moderators
General Bot PM
ok im all set to upgrade general bot but for some bloody reason the pm will not pm into a sepearate new window like it does in .23 it jsut shows up in main chat as private message from or client side private message recieved from general bot u knwo the cue, now why does .23 pm back into a new window and .241 not me and gadget had a go at tryin to sort it but no luck it dont seem he at all bothered anyway. so is there anyone out there that knows how to sort this thanx
ok, if it's the problem of a PM window not opening when a new users connect then its
this makes sure that the users client "knows" who the bot is and will accept a PM from it, otherwise it can beleive that its a message from a offline user (DC++ clients will use in this case whatever is defined in the advanced settings) and therfore the results are a bit ambigous
Code: Select all
Sub NewUserConnected (curUser)
' make sure the user knows the bot already
curUser.SendData "$Hello " & sBotName & "|"
frmHub.DoEventsForMe()
' your stuff here
Need NOT Greed (don't abuse poor countries)
Pay the Poor (increase minimum wage)
Tax the Rich (100% SuperTax rate)
(Do ya think thats maybe a little left-wing?)
Pay the Poor (increase minimum wage)
Tax the Rich (100% SuperTax rate)
(Do ya think thats maybe a little left-wing?)
This is because i hate new popups. If you want to open a new window with answer from the script, just type your question privately to it. Script will answer to the same window.
If you want to change that behavior, find line #1057 from the script:
and change it to:
If you want to change that behavior, find line #1057 from the script:
Code: Select all
curUser.SendData CStr("<"+sBotName+" (private)> "+sA)
Code: Select all
curUser.PrivateMessage CStr(sBotName),CStr(sA)