Skip to content

Commit

Permalink
use % instead of @
Browse files Browse the repository at this point in the history
  • Loading branch information
nshaheed committed Sep 16, 2023
1 parent d1003cc commit 036d0ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/chuck_otf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,15 +542,15 @@ t_CKINT otf_send_cmd( t_CKINT argc, const char ** argv, t_CKINT & i,
{
// arg as c++ string
string arg = trim(argv[i]);
// check for '#' | 1.5.1.4 (nshaheed & ge)
if( arg.length() && arg[0] == '#' )
// check for '%' | 1.5.1.4 (nshaheed & ge)
if( arg.length() && arg[0] == '%' )
{
// convert into number
msg.param = ck_atoul( argv[i]+1 );
// flag this for always add (whether the remove ID is present or not)
msg.param3 = TRUE;
}
else // no '#'
else // no '%'
{
// convert
msg.param = ck_atoul( argv[i] );
Expand Down
2 changes: 1 addition & 1 deletion src/core/chuck_vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ t_CKUINT Chuck_VM::process_msg( Chuck_Msg * & msg )

// print
const char * s = (msg->shred ? msg->shred->name.c_str() : msg->code->name.c_str());
EM_print2orange( "(VM) (optional) replacing shred: #%lu not found...", msg->param );
EM_print2orange( "(VM) (optional) replacing shred: %%%lu not found...", msg->param );
EM_print2green( "(VM) sporking incoming shred: %lu (%s)...", shred->xid, mini(s) );

// return value
Expand Down

0 comments on commit 036d0ae

Please sign in to comment.