Changeset 3e96ff0


Ignore:
Timestamp:
Sep 9, 2009, 11:08:51 AM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b9df757
Parents:
892e897
git-author:
Anders Kaseorg <andersk@mit.edu> (09/09/09 10:59:14)
git-committer:
Anders Kaseorg <andersk@mit.edu> (09/09/09 11:08:51)
Message:
owl_command_startup, owl_command_unstartup: Use skiptokens.

For a great time,
:                                                startup beep
before this commit, and look at your .owl/startup.  Then watch how it
evolves as you restart BarnOwl repeatedly.  :-)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r4083c49 r3e96ff0  
    11811181  }
    11821182
    1183   ptr=strchr(buff, ' ');
    1184   if (!ptr) {
    1185     owl_function_makemsg("Parse error finding command for startup");
    1186     return(NULL);
    1187   }
    1188 
    1189   owl_function_command(ptr+1);
    1190   owl_function_addstartup(ptr+1);
     1183  ptr = skiptokens(buff, 1);
     1184
     1185  owl_function_command(ptr);
     1186  owl_function_addstartup(ptr);
    11911187
    11921188  return(NULL);
     
    12021198  }
    12031199
    1204   ptr=strchr(buff, ' ');
    1205   if (!ptr) {
    1206     owl_function_makemsg("Parse error finding command for unstartup");
    1207     return(NULL);
    1208   }
    1209 
    1210   owl_function_delstartup(ptr+1);
     1200  ptr = skiptokens(buff, 1);
     1201
     1202  owl_function_delstartup(ptr);
    12111203
    12121204  return(NULL);
Note: See TracChangeset for help on using the changeset viewer.