cynicalbastard / jzbot

Automatically exported from code.google.com/p/jzbot
0 stars 0 forks source link

Add a mechanism to allow factoids to be called with space-containing arguments #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This could be either factoid-based or server-based. The idea is that
certain factoids, or certain servers, or whatever, invocation could be like
this:

~something "this is argument 1" arg2 arg3 "and the fourth one"

So that args can contain spaces. Further, double-quotes could be embedded
by prefixing them with a backslash, and backslashes could be included as
double backslashes.

This is not needed for everything, and indeed most likely not preferred for
everything, so maybe it should be either an execution-based thing or
something else. Perhaps the prefix "&" could be added when running a
factoid to allow that syntax. The "&" would most likely come before "%" and
other such prefixes, since "&" should be allowed for all users regardless
of whether they are a superop.

This would be particularly useful because BZFlag usernames can contain
spaces, and ~sendspam, for example, would not function correctly without this.

Original issue reported on code.google.com by javawiza...@gtempaccount.com on 7 Jan 2010 at 9:20

GoogleCodeExporter commented 9 years ago

Original comment by javawiza...@gtempaccount.com on 7 Jan 2010 at 9:21

GoogleCodeExporter commented 9 years ago

Original comment by javawiza...@gtempaccount.com on 9 Jan 2010 at 8:11