mIRC Home    About    Download    Register    News    Help

Print Thread
#65387 26/12/03 06:40 AM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
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.


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
#65388 26/12/03 07:08 AM
Joined: Dec 2003
Posts: 12
T
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2003
Posts: 12
raw 324 is for channel modes, but that might only work when u join the channel

#65389 26/12/03 07:09 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
if you are on the channel you can use $chan(#channelname).mode if not need to catch it with raw 324

#65390 26/12/03 07:14 AM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
Thank you!!!


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
#65391 26/12/03 07:33 AM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
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


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
#65392 26/12/03 07:38 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
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

#65393 26/12/03 07:39 AM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
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

Last edited by Static; 26/12/03 07:54 AM.

chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
#65394 27/12/03 01:40 AM
Joined: Apr 2003
Posts: 85
K
Babel fish
Offline
Babel fish
K
Joined: Apr 2003
Posts: 85
it does only work then, however there is an on mode event.


--

katsklaw
Rather experienced Admin
Rather experienced mIRC Scripter
Amateur C Coder
#65395 27/12/03 08:13 AM
Joined: Nov 2003
Posts: 84
S
Static Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Nov 2003
Posts: 84
I know about the on mode event Ill be adding that into it near the end, right now im trying to get the channel modes to switch on and off


chat.irchat.tv
#Help #Trivia #Scripts
Co-Admin @ IRChat.tv
#65396 27/12/03 08:34 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
oops sorry, yeah typo, isincs


Link Copied to Clipboard