cw search displays variable names instead of their value
Solution:
Open the mIRC script editor (Alt+R) and the tab Aliases, scroll to line ~ 164
and replace
Code: Select all
; ---------------------
; clanwar search
; ---------------------
cwsearch {
j #xonx,#clanwar,#funwar
set %cws_xonx $input($init_lang(Clanwarsearch,2),129,$init_lang(Clanwarsearch,1))
set %cws_cmts $input($init_lang(Clanwarsearch,3),129,$init_lang(Clanwarsearch,3))
set %cws_server $input($init_lang(Clanwarsearch,5),129,$init_lang(Clanwarsearch,4))
set %cws_wait $input($init_lang(Clanwarsearch,7),129,$init_lang(Clanwarsearch,6))
set %cws_time $input($init_lang(Clanwarsearch,9),129,$init_lang(Clanwarsearch,8))
if (%cws_xonx) {
j $iif(on isin %cws_xonx,%cws_xonx,$+(%cws_xonx,on,%cws_xonx))
if (%cws_server == 1) {
msg $+($chr(35),%cws_xonx,on,%cws_xonx) ($init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,11) || %cws_cmts || Query me!)
}
elseif (%cws_server == 2) {
msg $+($chr(35),%cws_xonx,on,%cws_xonx) ($init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,12) || %cws_cmts || Query me!)
}
}
if (%cws_server == 1) {
msg #xonx $init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,11) || %cws_cmts || Query me!)
msg #clanwar $init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,11) || %cws_cmts || Query me!)
msg #funwar $init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,11) || %cws_cmts || Query me!)
}
elseif (%cws_server == 2) {
msg #xonx $init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,12) || %cws_cmts || Query me!)
msg #clanwar $init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,12) || %cws_cmts || Query me!)
msg #funwar $init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait %cws_time || $init_lang(Clanwarsearch,12) || %cws_cmts || Query me!)
}
unset %cws_*
}
Code: Select all
; ---------------------
; clanwar search
; ---------------------
cwsearch {
var %cws_xonx = $input($init_lang(Clanwarsearch,2),129,$init_lang(Clanwarsearch,1)), %cws_cmts = $input($init_lang(Clanwarsearch,3),129,$init_lang(Clanwarsearch,3)), %cws_server = $input($init_lang(Clanwarsearch,5),129,$init_lang(Clanwarsearch,4)), %cws_wait = $input($init_lang(Clanwarsearch,7),129,$init_lang(Clanwarsearch,6)), %cws_time = $input($init_lang(Clanwarsearch,9),129,$init_lang(Clanwarsearch,8))
%cws_xonx = $iif(on isin %cws_xonx,$left(%cws_xonx,1),%cws_xonx)
if (%cws_xonx) {
join $+($chr(35),%cws_xonx,on,%cws_xonx)
var %cws_server_txt = $iif(%cws_server == 1,$init_lang(Clanwarsearch,11),$init_lang(Clanwarsearch,12))
.timer 1 1 msg $+($chr(35),%cws_xonx,on,%cws_xonx) $init_lang(Clanwarsearch,10) %cws_xonx on %cws_xonx %cws_wait || %cws_time || %cws_server_txt || %cws_cmts || Query me!
}
}
Fixed in the next Gamers.IRC version.