I was wondering whats a good way to get the current channel modes? Im trying to pull them then if lets say +nt is assigned certain check boxes will be checked already.
Otay how about this alias ModesTest { echo -a $chan(#suprnova.org).mode set %channel.modes $chan(#suprnova.org).mode if (C isin %channel.modes) { echo -a No CTCPs allowed in the channel } if (G isin %channel.modes) { echo -a Swear Filter is on } } How would I do lowercase c and Uppercase C? I know its === 3 times but that wont work here I need a isin
use iniscs , cs = Case Sensitive. also you should only check $gettok($chan(#name).mode,1,32) as C could be in the channel key, the gettok will only check the first word
Cool thanks Edit its isincs Edit2: Wow im annoying eh? set %channel.modes $gettok($chan(#name).mode,1,32) isnt setting any idea why? Edit3: Got it typos man Im sorry