X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=c84db3163c3bda9d8af9d315d6f087d4fb4e354d;hp=0ed2eae5de96a14a79572cd76852d20ff98ad641;hb=d0accc6cc623168616438ad06f0611a3dbb8f5a4;hpb=a87693bd247721f88dd0b1bed23c00a75aa51c6e diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 0ed2eae..c84db31 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1923,7 +1923,7 @@ class Brisk return ($this->kickuser($user_out, $out_reas)); } - function chatt_send($user, $mesg) + function chatt_send($user, $mesg, $mlang_indwr = NULL) { GLOBAL $G_base, $G_alarm_passwd, $mlang_brisk, $G_lang; $only_you = FALSE; @@ -2137,9 +2137,20 @@ class Brisk } while (0); } // nick chat command else if (strncmp($msg, "/info ", 6) == 0) { - $info_user = substr($msg, 6); + do { + if (! $user->is_auth()) { + if ($mlang_indwr) { + $to_user = nickserv_msg($dt, $mlang_indwr['info_auth'][$G_lang]); + } + else { + $to_user = nickserv_msg($dt, "error"); + } + break; + } + $info_user = substr($msg, 6); - echo $this->info_show($user, urldecode($info_user), $dt); + echo $this->info_show($user, urldecode($info_user), $dt); + } while(0); } else if (strncmp($msg, "/st ", 4) == 0) { log_main("chatt_send BEGIN");