diff --git a/doc/Plugins/Plang.md b/doc/Plugins/Plang.md index 7b3ad1ac..5e8174af 100644 --- a/doc/Plugins/Plang.md +++ b/doc/Plugins/Plang.md @@ -118,12 +118,12 @@ we'll use PBot's special factoid variable `$arg[0]`. First we add the `++` command. - !factadd ++ /call plang var karma = Integer(factget('#karma-data', '$arg[0]')); karma += 1; factset('#karma-data', '$arg[0]', String(karma)); + !factadd ++ /call plang var karma = Integer(factget('#karma-data', '$arg[0]')); factset('#karma-data', '$arg[0]', String(karma + 1)); ++ added to global channel. Similarly, we add the `--` command. - !factadd -- /call plang var karma = Integer(factget('#karma-data', '$arg[0]')); karma -= 1; factset('#karma-data', '$arg[0]', String(karma)); + !factadd -- /call plang var karma = Integer(factget('#karma-data', '$arg[0]')); factset('#karma-data', '$arg[0]', String(karma - 1)); -- added to global channel. Finally, we add the `karma` command.