Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Preventing Output from showing.

Preventing Output from showing.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by 99fender   (13 posts)  Bio
Date Sat 19 Apr 2003 03:34 PM (UTC)
Message
Hey,

I have several Worlds using PerlScript.

The worlds I connect to spam alot of 'raw code' to the Worlds, I need to create some way of only letting lines starting with ( be seen and a line with 7 M!C M!D

Thankyou,

Joe
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 20 Apr 2003 02:42 AM (UTC)
Message
Can you clarify if the spam is coming *from* the world (ie. the MUD) or are you sending it? The solution would be different in each case.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by 99fender   (13 posts)  Bio
Date Reply #2 on Sun 20 Apr 2003 11:55 AM (UTC)
Message
The spam is being recieved from the MUD - It's just raw output from the MUD which is sent all the time.
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 20 Apr 2003 10:20 PM (UTC)
Message
The simple solution would be to set up three triggers:

Trigger 1:
Match: (*
Sequence: 10

Trigger 2:
Match: 7 M!C M!D*
Sequence: 10

Trigger 3:
Match: *
Sequence: 20
Omit from output: checked

What this will do is omit everything from output, unless the two triggers with a lower sequence number fire first, in which case they will stop the third trigger from firing.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by 99fender   (13 posts)  Bio
Date Reply #4 on Mon 21 Apr 2003 12:58 AM (UTC)
Message
Thanx nick,

That works fine in some ways..

It removes any lines I dont need from being viewed on the output but the MUD World is still scrolling down as if it was still being shown but it just looks like a blank mud scrolling!

Helppp! :)
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 21 Apr 2003 01:49 AM (UTC)
Message
Blank lines are probably slipping through.

Go to the File -> Global Preferences -> General

and check the box "Regular expressions can match on an empty string" - see if that fixes it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by 99fender   (13 posts)  Bio
Date Reply #6 on Mon 21 Apr 2003 08:39 AM (UTC)
Message
Nick,

That works a charm..

I have about 20 triggers on a MUD World.

All are sequence 100 except for * which is 110 and omitted from output.

All lines starting with (* are getting through also.

([ * whispers, "buying cp" to you. ] <-- This line gets through, for example, but - Since I added the * trigger, it gets through but doesn't seem to execute the script sub.. (PerlScript).. * has messed something up, that's for sure.

Thanx,

Joe
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


23,979 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.