File: kill.mpi

package info (click to toggle)
madoka 4.2.3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 960 kB
  • ctags: 45
  • sloc: perl: 1,006; makefile: 45; sh: 4
file content (13 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# madoka 4.2 sv_kill
#
# server/kill.mpi
#    Copyright(c)1998- cookie / The madoka project
#

sub sv_kill {
  my($from, $pr) = @_;
  my($u, $reason) = ($pr =~ /^([^ ]+) *:?(.*)$/);
  &mes("[!] Killed by $from: $reason\n", 'ALL');
  &send('ccn', ":$from KILL $us_nick :$reason\n");
  &plugin('KILL', 'ALL', $from, $reason);
}