• R/O
  • SSH
  • HTTPS

zerochplus: Commit


Commit MetaInfo

Revisão542 (tree)
Hora2014-10-26 22:30:39
Autoriroiro

Mensagem de Log

force774

Mudança Sumário

Diff

--- codes/0ch_force774.pl (revision 541)
+++ codes/0ch_force774.pl (revision 542)
@@ -99,19 +99,18 @@
9999 $Threads->SaveAttr($Sys);
100100 }
101101
102- # コテ★は影響しない
103- if (!($cap_not_forced && $kote)) {
104-
105- my $force774 = $Threads->GetAttr($threadid, 'force774');
106- if ($force774 =~ /^!(.*)$/) {
107- $Form->Set('FROM', $1);
102+ my $force774 = $Threads->GetAttr($threadid, 'force774');
103+ if ($force774 =~ /^!(.*)$/) {
104+ # コテ★は影響しない
105+ if (!($cap_not_forced && $kote)) {
106+ # トリップ許可
107+ if ($allow_trip && $name =~ /#|#/) {
108+ $name =~ s/^.*(#|#)/\1/;
109+ $Form->Set('FROM', $name);
110+ } else {
111+ $Form->Set('FROM', $1);
112+ }
108113 }
109-
110- # トリップ許可
111- if ($allow_trip && $name =~ /#|#/) {
112- $name =~ s/^.*(#|#)/\1/;
113- $Form->Set('FROM', $name);
114- }
115114 }
116115
117116 return 0;
Show on old repository browser