~sapidlib-dev-core/sapidlib/devel

« back to all changes in this revision

Viewing changes to lib/cmds/file/ed.c

  • Committer: Richard Harrison
  • Date: 2012-04-26 02:09:41 UTC
  • Revision ID: harrison.rt@gmail.com-20120426020941-m5j561r37d3p8hum
Manual merge of work from RtH. Also cut down on the amount of call_out's in timezone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
  {
15
15
    if (!this_player()->query("cwf"))
16
16
    {
17
 
      message("error", "No argument supplied.\n");
 
17
      message("error", "No argument supplied.");
18
18
 
19
19
      return 1;
20
20
    }
27
27
 
28
28
  if (directory_exists(file))
29
29
  {
30
 
    message("error", "Can not edit a directory.\n");
 
30
    message("error", "Can not edit a directory.");
31
31
 
32
32
    return 1;
33
33
  }
38
38
 
39
39
  return 1;
40
40
}
41
 
string help() {
42
 
  return (HIW + " SYNTAX: " + NOR + "ed <file>\n\n" +
43
 
  "This command lets you edit a specified file in the mud editor. To\n"
44
 
  "access editor specific help, type 'h' while in the editor.\n\n" +
45
 
  HIW + " See also: " + NOR + "rm, more, mv, cp, etc.\n");
 
41
 
 
42
string help()
 
43
{
 
44
  return HIW + "Syntax:" + NOR + " ed <file>\n" + @ENDHELP
 
45
 
 
46
This command lets you edit a specified file in the mud editor. To
 
47
access editor specific help, type 'h' while in the editor.
 
48
 
 
49
%^WHITE%^See also:%^RESET rm, more, mv, cp, etc.
 
50
ENDHELP;
46
51
}