From 638d9eae9e63755e26f9843985597e6f1c7c5f8e Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Thu, 28 Jun 2007 21:53:01 +0000 Subject: added user management commands, which clears the TODO list, for now --- TODO | 2 +- config-default/commands.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ config-default/users.xml | 14 +++++++------- 3 files changed, 50 insertions(+), 8 deletions(-) diff --git a/TODO b/TODO index 2c8a0a8..20574b5 100644 --- a/TODO +++ b/TODO @@ -1 +1 @@ -- add users / modify user flags +nothing, for now! :) diff --git a/config-default/commands.xml b/config-default/commands.xml index f3a5f17..b86783e 100644 --- a/config-default/commands.xml +++ b/config-default/commands.xml @@ -7,6 +7,48 @@ $conn->privmsg($event->{to}->[0], "$result results found."); ]]> + + {$nick} = { 'host' => $host }; + $::users->{person} = $::xusers; + writeUsers(); + $conn->privmsg($event->{to}->[0], "Hiya $nick"); + ]]> + + + {$nick}->{flags}); } else { + $::xusers->{$nick}->{flags} = $flags; + } + $::users->{person} = $::xusers; + writeUsers(); + $conn->privmsg($event->{to}->[0], "Flags for $nick set to $flags"); + ]]> + + + {$nick}); + $::users->{person} = $::xusers; + writeUsers(); + $conn->privmsg($event->{to}->[0], "Byebye $nick"); + ]]> + + + {$nick}->{flags})) { + $conn->privmsg($event->{to}->[0], "Flags for $nick: $::xusers->{$nick}->{flags}"); + } else { + $conn->privmsg($event->{to}->[0], "$nick has no flags"); + } + ]]> + + + - - - - - - - + + + + + -- cgit v1.2.3