It is currently Sun May 19, 2013 4:58 am

All times are UTC [ DST ]




 Page 1 of 1 [ 6 posts ] 
Author Message
 Post subject: [Help] Scripting Problem
PostPosted: Sat Jun 05, 2004 10:43 am 
User avatar

Joined: Sat May 22, 2004 6:17 pm
Posts: 17
Location: Cyprus
a friend of me has this problem
Quote:
on !*:JOIN:#channel:{
if $me isop #channel { whois $nick
}
}
raw 319 {
if (#channel isin $3-) { ban #channel $2 2 -u600 kick #channel $2 POUTANAS GIOI PORTOKALOI halt }
if (#channel isin $3-) { ban #channel $2 2 -u600 kick #channel $2 POUTANAS GIOI FASISTES DEKSIOI halt }
if (#channel isin $3-) { ban #channel $2 2 -u600 kick #channel $2 POUTANAS GIOI PORTOKALOI halt }
if (#hello isin $3-) { ban #channel$2 2 -u600 kick #channel $2 O M O N O I A halt }
}


now the problem: everytime he whois a user that its in the forbiden channels he automaticaly sets mode +b the users ip/host in the protected channel..how can he fix that?



_________________
embrace me..surround me..
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Jun 06, 2004 10:05 pm 
User avatar

Joined: Fri Mar 15, 2002 1:00 am
Posts: 306
Location: Istanbul, Turkey
The code which you gave won't work.
Type /help Raw Events and learn how to code a raw event.
if ($2 ison #mychannel) with that line mIRC will continue if the user is on the channel. If not, it won't try to kick.
Type /help If then else and you'll get information about the operators...

Try that code;

on *:JOIN:#mychannel:{
  if ($me isop #mychannel) whois $nick
}
raw 319:*:{
  if ($2 ison #mychannel) goto kick
  else goto end 
  :kick
  if (#forbiddenchannel isin $3-) kick #mychannel $2
  :end
}



_________________
Ozan Güven aka OzzY

Who is a lamer? -> http://www.lamerism.com/
Offline
 Profile  
 
 Post subject:
PostPosted: Mon Jun 07, 2004 8:36 am 

Joined: Sun Dec 01, 2002 10:47 pm
Posts: 212
You could also use $comchan to find the channel in which both you and the nickname are in. Kick needs a channel name; the on join event has the $chan identifier, but the raw event doesn't.


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Jun 07, 2004 4:17 pm 
User avatar

Joined: Sat May 22, 2004 6:17 pm
Posts: 17
Location: Cyprus
thx ppl,problem solved now :P



_________________
embrace me..surround me..
Offline
 Profile  
 
 Post subject:
PostPosted: Sat Jun 12, 2004 3:14 pm 
#help member
User avatar

Joined: Sun Feb 09, 2003 12:16 am
Posts: 83
Location: Sydney, Australia
Go to http://www.mircscripts.org and get a script that does what you need.

- wensu


Offline
 Profile  
 
 Post subject:
PostPosted: Wed Jun 30, 2004 2:41 am 
User avatar

Joined: Mon Jun 21, 2004 7:31 pm
Posts: 17
Location: Cyprus
on ^1:JOIN:#mychannel: {
if ($nick == $nick) && ($me isop #mychannel) { whois $nick }
}
Raw 319 :*: { if (#badchan isin $3-) { ban #mychannel $$2 2 | kick #mychannel $$2 Reason }
}



_________________
viruz - http://www.NewbiesIRC.tk
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: