Send info
 

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

Send info

Started by VERMiN, 02 November, 2003, 13:41:38

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VERMiN

Ok guys, don't laugh now. For what I have to ask you is probably very silly ;)

But how do you send text to the statusfield in dc++ ? The one-line window with kick/ban messages? Where it says: [13:07] Connected  for example..

I have a script that kicks out 'badclient' softwares and I want the people to see whenever this occur, but I don't want to send into the main chat window.

I use disconnect() and Ban() to get rid off the user, but what am I to do in order to show the information about it?

I don't know if I made myself clear, but hopefully somebody understand and don't take me for a jack-ass ;-)


Regards!
The damned creator of [-MORBID-].  \" A damn fine security script \" [/COLOR]


HOMEPAGE
E-mail

tezlo

prefix the msg with ***
but most ppl will see it in the mainchat as well
depends on their settings

VERMiN

It doesn't work for me. But I suppose I did something wrong..

What command shall I use?

SendToAll(Bot,"***An illegal user was just kicked out..")

just sends it into the main chat and not as a status message. I've tried SendToNick() and SendData() as well. What am I missing? :-)
The damned creator of [-MORBID-].  \" A damn fine security script \" [/COLOR]


HOMEPAGE
E-mail

Tuben

SendPmToNick(curUser.sName,Bot,"You are using a badclient. ")

Maybe ?
-Dark-Mind-[ DOWNLOAD ]

kepp

SendToAll(, "***An illegal user was just kicked out..")

^^ That will show everyone in main but without the bot name!

Etc:
***An illegal user was just kicked out


if you use
SendToAll(Botname, "*** An illegal user was just kicked out..")

you will get:

<[Botname]> *** An illegal user was just kicked out..

But, people can enable and disable time stamps so the result for them will be:

[12:00] *** An illegal user was just kicked out..
Guarding    

VERMiN

Yes, but it's still displayed in mainchat window. I want it to be within the status-window only. And I don't want to send any PM's because I'd like everybody in the hub to see that he/she was thrown out. But I don't want the spam the mainchat.

Normally DC++ doesn't have the option 'View status messages in main chat' turned on.

Like the messages you see when somebody is kicked out.. That's how I want it.

I don't know if I'm being fuzzy, rambling or something... =)
The damned creator of [-MORBID-].  \" A damn fine security script \" [/COLOR]


HOMEPAGE
E-mail

kepp

You don't want to spam the mainchat but you want everyone else to see it? how's that possible?
:rolleyes:
Guarding    

VERMiN

Well it's not that difficult ;)

You don't spam if the message is displayed in the status-windows/line. And everybody can see it.
Since dc++ has it by defaults not to show these messages in main chat there should be no problems.

I hope you guys understand the difference between mainchat and statusmessages? :-)


So simply put, how do I send statusmessages? Just like the ones you often see when somebody is kicking 'somebody' ??


I must give terrible explainations. Remind me never to become a teacher 8)

/Eager waiting for replys.
The damned creator of [-MORBID-].  \" A damn fine security script \" [/COLOR]


HOMEPAGE
E-mail

tezlo

simply put..
you cant send status messages

dc++ has its own ways..
try typing "tezlo is kicking someone because: something" in the mainchat

SMF spam blocked by CleanTalk