This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Making a person go +q on a channel

Old posts that have not been replied to for several years.
Locked
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Making a person go +q on a channel

Post by OnFire »

Hi
I'd like to know the TCL command to quiet a user on a channel. I've tried 'pushmode $chan +q $nick' but this doesn't seem to work, unless I've messed it all up.
Cheers!
T
Thor

Post by Thor »

quiet a user on the chan???

the bot can just ignore it i think !!!

see tcl-commands.doc
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I think the genral idea bhind the code, was to allow it to affect the whole channel. IE, when you set somone +q, no1 gets to hear what they say.

It's the opsite of +v, in a way. Instead of allowing some1 to talk whent he channel is +m, you can shut specific people up when it's -m.

You could use the code

Code: Select all

putserv "MODE $chan +q $nick"
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Post by OnFire »

Hmmm
Cheers, it worked, but I must have totally messed it up before...
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Post by OnFire »

Another question: someone I know uses xchat and when my bot does an action the text which comes up is: <Weebl> ACTION gives coolsi a Jelly Wibble. It wobbles. I use the TCL command puthelp "PRIVMSG $chan :\001ACTION gives $nick a Jelly Wibble. It wobbles." Is there any way I can stop this happening?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Stop which happening.

The message, or the way it comes in as a action?
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Post by OnFire »

To stop the person seeing '<Weebl> ACTION gives coolsi a Jelly Wibble. It wobbles.' instead of a normal action
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I'm still confused.

First off, is this displayed in all clients?
When you do a action in your client, does he see it done properly, or does he see the same.

You could add a "\001" to the end of the text, though I don't know.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

ppslim wrote:I'm still confused.
You have been wibbled, just like me :)
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Post by OnFire »

lol

Sorry, I'll explain again, but better this time.

In one part of one of my TCL scripts the bot does an action.

Code: Select all

"PRIVMSG $chan :\001ACTION gives $nick a Jelly Wibble. It wobbles."
I use mIRC and it comes up on screen like this:

* Weebl gives coolsi a Jelly Wibble. It wobbles.

However, someone I know uses xchat as their client, and the same bit of script comes up on their screen as:

<Weebl> ACTION gives coolsi a Jelly Wibble. It wobbles.

I'd like to know if there is any way to stop this from happening. If I do something like ".act test" in the partyline then it comes up fine in xchat.

I hope you understand now!! :D
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As stated, add the \001 to the end of the text.

This is taken from the IRC module, for the .act command

Code: Select all

dprintf(DP_HELP, "PRIVMSG %s :\001ACTION %s\001\n",
          chan->name, par);
If you can read C (even if you can't), you can see the second \001.
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Post by OnFire »

Cheers!
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Post by OnFire »

Yet another question (I thought I'd put it in this topic instead of making a new one)! In the following code:

Code: Select all

putquick "PRIVMSG $chan :\001ACTION gives $nick a Deep [censored] Wibble"
putquick "PRIVMSG $chan :(AKA a 2 minute Ban)"
putquick "MODE $chan +b $nick"
putkick $chan $nick
timer 2 [putserv "MODE $chan -b $nick"]
timer 2 [putserv "PRIVMSG $nick :You've been unbanned from $chan - don't take it personally!"]
The timer doesn't actually go for 2 minutes - it pretty much executes instantly. Does anyone know why?

Cheers
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There are other threads regarding this, poosted within the last 2 weeks.

Do a little search.

HINT: it's regarding the use of [] around the putserv.
O
OnFire
Voice
Posts: 23
Joined: Tue Oct 01, 2002 1:51 pm

Post by OnFire »

Thanks I'll have a look.
Locked