Style 1 on and off switch - 26/04/04 05:43 AM
I have a ctcp blocker that i made and trying to get it in the same format as i have something else that i use, here's what i have so far
CTCP Blocker
.Client Info « %ctcp_blocker.clientinfo »
..$iif(%ctcp_blocker.clientinfo == on,$style(1)) On: { set %ctcp_blocker.clientinfo On | .enable #ctcp_blocker.clientinfo | echo -a 0,2 CTCP Blocker (Client Info) is now 12,8 « On » }
..$iif(%ctcp_blocker.clientinfo == off,$style(1)) Off: { set %ctcp_blocker.clientinfo Off | .disable #ctcp_blocker.clientinfo | echo -a 0,2 CTCP Blocker (Client Info) is now 12,8 « Off » }
and he's how i would like it to look so it's like this
CTCP Blocker
(tick) Client Info
Of course i can't do the symbol tick on here so i typed tick in
Here;s something like that i have for something else that i have
.$iif(l isincs $gettok($chan(#).mode,1,32),$style(1)) Limit $chan(#).limit « l »: { mode # $iif(l isincs $gettok($chan(#).mode,1,32),-l,+l $$?="Set Size Limit") }
CTCP Blocker
.Client Info « %ctcp_blocker.clientinfo »
..$iif(%ctcp_blocker.clientinfo == on,$style(1)) On: { set %ctcp_blocker.clientinfo On | .enable #ctcp_blocker.clientinfo | echo -a 0,2 CTCP Blocker (Client Info) is now 12,8 « On » }
..$iif(%ctcp_blocker.clientinfo == off,$style(1)) Off: { set %ctcp_blocker.clientinfo Off | .disable #ctcp_blocker.clientinfo | echo -a 0,2 CTCP Blocker (Client Info) is now 12,8 « Off » }
and he's how i would like it to look so it's like this
CTCP Blocker
(tick) Client Info
Of course i can't do the symbol tick on here so i typed tick in
Here;s something like that i have for something else that i have
.$iif(l isincs $gettok($chan(#).mode,1,32),$style(1)) Limit $chan(#).limit « l »: { mode # $iif(l isincs $gettok($chan(#).mode,1,32),-l,+l $$?="Set Size Limit") }