Code: Select all
tag when posting logs, code
I found a version in mIRC which pretty much sums up exactly what I wanted,Sir_Fz wrote:What's that command supposed to do?
Code: Select all
on *:text:*:#:{ if ($me isop #) || ($me isop $chan) || ($address($nick,2) isin %botowner) || ($address($nick,2) isin %botadmins) && ($chan != #botsrus) {
if ($left($1,1) == $+(%trigger. [ $+ [ $chan ] ])*) && ($remove($1,$left($1,1)) != set) && ($2 == $null) {
if ($eval($+(%,$remove($1,$left($1,1)),.,$chan),2)) {
if ($eval($+(%,theme.,#),2) == 1) && ($eval($+(%,msgmode.,#),2) == 1 || $eval($+(%,msgmode.,#),2) == $null) { /cnotice $nick $chan 10,1[15 $eval($+(%,$remove($1,$left($1,1)),.,$chan),2) 10,1] }
elseif ($left($1,1) == $+(%trigger. [ $+ [ $chan ] ])*) && ($remove($1,$left($1,1)) == set) && ($nick isop $chan || $address($nick,2) isin %botadmins) && ($2 != $null) && ($3 != $null) && ($2 != trigger) && ($2 != punishtype) && ($2 != nourls) && ($2 != noads) && ($2 != nonotice) && ($2 != theme) && ($2 != onjoinmsg) && ($2 != msgmode) && ($2 != onjoinmsg2) {
set $+(%,$2.,#) $3-
/cnotice $nick $chan $2 set to: $eval($+(%,$2.,#),2)
halt
}
Code: Select all
tag when posting logs, code