… | |
… | |
113 | $who->{neko_attack} = 0; |
113 | $who->{neko_attack} = 0; |
114 | } |
114 | } |
115 | |
115 | |
116 | $who->{neko_last_attack} = time; |
116 | $who->{neko_last_attack} = time; |
117 | $who->{neko_attack}++ |
117 | $who->{neko_attack}++ |
118 | or do { |
118 | or cf::ext::schmorp_irc::do_notice "Neko-san was attacked by ". $who->name . "!\n"; |
119 | cf::LOG cf::llevDebug, my $n = sprintf "QBERT Neko-san was attacked by %s!\n", $who->name; |
|
|
120 | cf::ext::schmorp_irc::do_notice ($n); |
|
|
121 | }; |
|
|
122 | |
119 | |
123 | $who->message ("Meoow! (Please do not hurt me)") |
120 | $who->message ("Meoow! (Please do not hurt me)") |
124 | if !($who->{neko_attack} & 15); |
121 | if !($who->{neko_attack} & 15); |
125 | |
122 | |
126 | if ($who->{neko_attack} > 512) { |
123 | if ($who->{neko_attack} > 512) { |