Giter Club home page Giter Club logo

punymud's Introduction

Hi there ๐Ÿ‘‹

punymud's People

Contributors

paralax avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

pjz

punymud's Issues

Trying to examine something you do not have causes crash

What steps will reproduce the problem?
1. Get something to inventory
2. ex nonexistent
3. crash
(4. also crashes when sending a word that starts with ex, like "exit")

What is the expected output? What do you see instead?
Give message that you do not have that item.

What version of the product are you using? On what operating system?
Recent svn checkout

Please provide any additional information below.
replace starting near line 137: 

        elif cmd.startswith('ex'):
            if not arg: self.parse('help')
            else:
                found = False
                for o in world.objects_at_location(self.oid) +
world.objects_at_location(self.location):
                    if o.name == arg.strip():
                        if getattr(o, 'description', False):
self.sendto(o.description)
                        else: self.sendto("It's just a %s" % o.name)
                        found = True
                if not found: self.sendto("You don't have a %s" % arg)


Original issue reported on code.google.com by [email protected] on 5 Jan 2008 at 10:37

D # (no description) causes disconnection

What steps will reproduce the problem?
1. Fail to provide the required description to the D command
2. Character gets disconnected


What is the expected output? What do you see instead?
Give an error message, but keep the connection.


What version of the product are you using? On what operating system?
Recent svn checkout.


Please provide any additional information below.
I can't create a clean patch since I've converted all of
the tabs to spaces in my checkout, but you could replace
starting at line 154 with this...

        elif cmd == 'D':
            if not arg: self.parse('help')
            try: oid, desc = arg.split(' ', 1)
            except AttributeError: self.parse('help')
            except ValueError: self.sendto('must include description')
            else:
                try: oid = int(oid)
                except ValueError: self.parse('help')
                o = world.find_by_oid(oid)
                if o:
                    o.description = desc
                    world.save()
                    self.sendto('Ok')
                else: self.sendto('Object %s not found' % oid)

Original issue reported on code.google.com by [email protected] on 5 Jan 2008 at 10:27

mud.py source file mixes leading tabs and leading spaces

What steps will reproduce the problem?
1. Open mud.py in editor with tab width set to something other than 8
2. Lines indented with tabs will appear to have the wrong indentation


What is the expected output? What do you see instead?
Code should probably conform to PEP  (http://www.python.org/dev/peps/pep-0008/)


What version of the product are you using? On what operating system?
Recent svn checkout.


Please provide any additional information below.
Will attach patch to fix indentation.

Original issue reported on code.google.com by [email protected] on 5 Jan 2008 at 10:03

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.