[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Preventing Output from showing.
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Preventing Output from showing.

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


Posted by 99fender   (13 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] 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
[Go to top] top

Posted by 99fender   (13 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] 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
[Go to top] top

Posted by 99fender   (13 posts)  [Biography] 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! :)
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] 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
[Go to top] top

Posted by 99fender   (13 posts)  [Biography] 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
[Go to top] 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.


5,489 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]