diff options
| author | 2007-06-28 21:13:35 +0000 | |
|---|---|---|
| committer | 2007-06-28 21:13:35 +0000 | |
| commit | 7ea23cad4c72904b02ad5c359f5edfab8328268d (patch) | |
| tree | a0973bfe2aaa8d4d7c0e35c09f2466ed9410e56a /config-default | |
| parent | d944892a0c4d04c056a8697fc0aee54b5b01ff88 (diff) | |
memleak fix, better nick tracking, new commands, major security exploit fix
Diffstat (limited to 'config-default')
| -rw-r--r-- | config-default/commands.xml | 31 | ||||
| -rw-r--r-- | config-default/users.xml | 19 |
2 files changed, 36 insertions, 14 deletions
diff --git a/config-default/commands.xml b/config-default/commands.xml index 77ee1c7..9aee415 100644 --- a/config-default/commands.xml +++ b/config-default/commands.xml @@ -7,6 +7,15 @@ $conn->privmsg($event->{to}->[0], "$result results found."); ]]> </command> + <command cmd="^;autoban (\S+)$" flag="a"> + <![CDATA[ + my $chan = $1; + my $set = $::channels->{channel}->{$chan}->{op}; + if ($set eq "no") { $set = "when"; } else { $set = "no"; } + $::channels->{channel}->{$chan}->{op} = $set; + $conn->privmsg($event->{to}->[0], "Operator action for $chan set to \"$set\"."); + ]]> + </command> <command cmd="^;hilight (\S+) (\S+) ?(\S*)$" flag="a"> <![CDATA[ my $chan = $1; @@ -33,14 +42,28 @@ $conn->privmsg($event->{to}->[0], "kthxbai $nick"); ]]> </command> - <command cmd="^;join (.*)" flag="a"> + <command cmd="^;join (\S+)" flag="a"> <![CDATA[ - $conn->join($1); + my $chan = $1; + unless (defined($::channels->{channel}->{$chan})) { + $::channels->{channel}->{$chan} = { 'op' => 'no' }; + writeChannels(); + } + $conn->join($chan); + my @autojoins = @{$::settings->{autojoins}}; + @autojoins = (@autojoins, $chan); + $::settings->{autojoins} = \@autojoins; + writeSettings(); ]]> </command> - <command cmd="^;part (.*)" flag="a"> + <command cmd="^;part (\S+)" flag="a"> <![CDATA[ - $conn->part($1); + my $chan = $1; + $conn->part($chan); + my @autojoins = @{$::settings->{autojoins}}; + @autojoins = grep { lc $_ ne lc $chan } @autojoins; + $::settings->{autojoins} = \@autojoins; + writeSettings(); ]]> </command> <command cmd="^;sl (.*)" flag="d"> diff --git a/config-default/users.xml b/config-default/users.xml index 555ac73..9bdfed3 100644 --- a/config-default/users.xml +++ b/config-default/users.xml @@ -1,12 +1,11 @@ <people> - <person id="afterdeath" flags="oda" host="IDENTIFY" /> - <person id="filiated" flags="oda" host="IDENTIFY" /> - <person id="ocee" host="unaffiliated/ocee" /> - <person id="wildpikachu" host="about/linux/staff/wildpikachu" /> - <person id="slowking_man" host="IDENTIFY" flags="o" /> - <person id="cchan" host="IDENTIFY" flags="oda" /> - <person id="mark_ryan" host="wikimedia/mark" flags="o" /> - <person id="dmcdevit" host="IDENTIFY" flags="oa" /> - <person id="seanw" host="freenode/staff/wikimedia.sean-whitton" flags="oa" /> - <person id="st47" host="IDENTIFY" flags="oa" /> + <person id="afterdeath" flags="odat" host="IDENTIFY" /> + <person id="filiated" flags="odat" host="IDENTIFY" /> + <person id="wildpikachu" host="about/linux/staff/wildpikachu" flags="odat" /> + <person id="slowking_man" host="IDENTIFY" flags="ot" /> + <person id="cchan" host="IDENTIFY" flags="odat" /> + <person id="mark_ryan" host="wikimedia/mark" flags="ot" /> + <person id="dmcdevit" host="IDENTIFY" flags="oat" /> + <person id="seanw" host="freenode/staff/wikimedia.sean-whitton" flags="oat" /> + <person id="st47" host="IDENTIFY" flags="oat" /> </people> |
