Operscript (mute)

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

Post Reply
Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Operscript (mute)

Post by Alex » Sun Jul 30, 2006 10:17 am

Hello,

I'm quiet not sure if this is ther ight forum to post this question, but I try.

I'm using a opscript and I there have one for mute a single user in chat. My question is, would the code below work on Unreal 3.2.5 or has it to be re-written in one or another way :?:

Code: Select all

.Mute $snicks: {
    /onotice # 12(4Op Notice12)  13 Has Muted 4 $snicks- 13 on #
    /mode $snicks +z
  }

.UnMute $snicks: {
    /onotice # 12(4Op Notice12)  13 Is Un-Muting 4 $snicks- 13 on #
    /mode $snicks -z
  }
I'm not a scripter my self, so I wondered if someone here know what to do wit that code to get it work on Unreal 3.2.5.

Thanks.

Jobe1986
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe1986 » Sun Jul 30, 2006 10:53 am

In Unreal you can mute a user 1 of 2 ways or both. You can either /shun the user or use and extened +b channel ban.

Unfortunatly the code youve provide will need to be modified to work with Unreal.

And not knowing exactly how the script works i dont know how to change the script to work. Sorry

Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex » Sun Jul 30, 2006 11:43 am

Thanks for your reply Jobe1986. It was worthfull what you wrote, so maybe someone else that can scripting will look at it. However, any help have a value. :wink:

Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Post by Matridom » Sun Jul 30, 2006 1:42 pm

Some other/old servers had specific user modes in a channel that would ban "just them" The one i remember is +q from chatspace (this is going back years).

The answer has been giving up above, use shun or the +b ban. I would recommend using the +b ban as you won't need to be a netadmin, the user will be aware that they are "quiet banned" and you won't affect them on other channels.

I know mIRC scripting, but it's been a while, you'll probably want to change the script to something much simpler...

Code: Select all

.Mute .mode # +b $$1 4
and

Code: Select all

.Un-Mute .mode # -b $$1 4
The . instead of the / causes mirc to hide the command from you (so you don't see your client typing in /mode .....). You will still see the results of the command.

The '4' may need to change as it determins what mask is banned, check the mIRC scripting documentation to find the one that suits you best. Aslo, if you get creative, you can use Unreal's extended bans (~q for example) to get the exact results.

As for the Onotice, I don't know about you, but if an AOP was spamming me like that, they would be loosing their AOP pretty fast, i would recommend tossing the /onotice line completly.
Never argue with an idiot. They will bring you down to their level, then beat you with experience.

Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex » Sun Jul 30, 2006 1:56 pm

Thank you for your reply. As you said this mute command as I referred to was used on a server where I was an op on years ago, and it was made for IRCx.

Regarding to the onotice, we use the following which work perfect on Unreal3.2.5 without any modification:

I'll show you the code here and how it looks when using the following command on mIRC:

Code: Select all

Msg # OPs:/onotice # 12(Nick12) $$?="Enter message to ops:"
This is how it looklike when entered in chat to other ops:

[3:54pm] -> Ops #OpChat: (Nick) Test Message

so what I really type in mIRC is: /ops my message.

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Sun Jul 30, 2006 3:08 pm

/onotice works on Unreal... All mIRC does is send "NOTICE @#Channel" to the server, and the server sends it to all the ops. Unreal supports this for all channel prefixes

Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Post by Matridom » Sun Jul 30, 2006 3:45 pm

Onotices definatly have their uses, as do other notices. What i was refering to was adding it to the existing command of a ban.

When a command like that get's issued, everyone in the channel can see it. So to me, it's stating the obvious, witch i find highly annoying.

Code: Select all

Msg # OPs:/onotice # 12(Nick12) $$?="Enter message to ops:"
if you where to make that..

Code: Select all

Msg # OPs:.onotice # 12(Nick12) $$?="Enter message to ops:"
you could get ride of this line '[3:54pm] -> Ops #OpChat: (Nick) Test Message '

I'm a stickler for clean interfaces..
Never argue with an idiot. They will bring you down to their level, then beat you with experience.

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight » Sun Aug 06, 2006 5:29 am

I could be mistaken but mirc by default has some idiotic /omsg and /onotice implementation that doesn't use statusmsg/wallchops at all (just directly /msg's all the ops).

Solution?
Aliases

Code: Select all

/omsg /.msg @#$1 $2-
/onotice /.notice @#$1 $2-

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Sun Aug 06, 2006 12:41 pm

aquanight is right, u need to alias it to do @#channel and the same with the other levels in the channel
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

Jobe1986
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe1986 » Sun Aug 06, 2006 12:44 pm

Of course with UnrealIRCd 3.2.5 you could always set up aa alias to it in the config so every user can user it.
Your IP: Image

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight » Mon Aug 07, 2006 4:57 am

Jobe1986 wrote:Of course with UnrealIRCd 3.2.5 you could always set up aa alias to it in the config so every user can user it.
No. As I said, mirc has its own /omsg and /onotice commands. Even if you define aliases in unreal's config, mirc will still use its own versions; all you will accomplish just letting everyone else who has a client that doesn't provide these two commands to use them. But mirc users must override them with a client-side alias.

Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex » Mon Aug 07, 2006 7:31 am

Now wait a second. This mute script was not for everyone to use. It was made the way so only ops couold use it. When mute was set, it also was sent a oper pm to the other ops online in the same channel. So that means, you had to be opped up before you could use it.

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight » Fri Aug 11, 2006 1:29 am

You still have to be op to use the /mode ...

Jobe1986
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe1986 » Fri Aug 11, 2006 2:49 am

And just for safetys sake you can always use:

Code: Select all

if ( $me isop # ) { 
    /put commands here if you are op in the channel
}
That way you wont get ugly messages telling you that you are not op in the channel.

Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex » Fri Aug 11, 2006 12:19 pm

aquanight wrote:You still have to be op to use the /mode ...
Yes that's right aquanight, but when I in the first place posted this, it was for a question how it could be used on an IRCd, since this script was made for IRCx which is totally different from IRCd. The IRCx that was used was a program for Windows.

Post Reply