Basic Leave and Assign Snippet

Platform:  mIRC
Published  Dec 31, 2009
Updated  Dec 31, 2009
This is a very basic assign to channel and leave channel.

!Assign #channel - Goto the channel
!Leave - Leave the channel
------------------------------
FEEL FREE TO REMOVE THIS
Leave Channel And Assign to Channel Script
Made by: J4ckster
------------------------------
on *:TEXT:!leave:#: {
part $chan
}

on *:TEXT:!assign*:#: {
join $2
}

Comments

Sign in to comment.
Jethro   -  Jan 01, 2010

Code

 
You don't even have to enter the #ChanName. Just !join ChanName and !part ChanName without #

Take blitzz's word for it so that only ops can command the client running the code to join or part.

Oh blitzz, no ! negate symbol in isop operator 'cause that will mean if a user is NOT an op...lol
 Respond  
blitzz   -  Dec 31, 2009
You may need to add if($nick !isop $chan) so only op chan can use the command.
 Respond  
sunslayer   -  Dec 31, 2009

Quote

Are you being rude? Because you can't. Your saying you don't like the script.

I'm new to both of these, scripting with mIRC and Hawkee.
rofl

Quote

lol i so should learn regex
http://www.regular-expressions.info is a good tutorial

if you change the syntax for the first event

Code

 
 Respond  
p0d   -  Dec 31, 2009
lol i so should learn regex
 Respond  
DarkCoder   -  Dec 31, 2009
Very good :P. Could be,

Code

 
 Respond  
p0d   -  Dec 31, 2009
and sunslayer wasnt being rude i belive he was just makeing a suggestion to your code. Were all here to learn :) .. and It most certainly can be combined in many fashions

Code

 
 Respond  
J4ckster   -  Dec 31, 2009
This was ment for a bot assigning channel. If someone wants that bot in there channel thwy say !assign #myxhannel in the #BotAssigningChan and if they don't want to bot in there channel, in there channel, #MyChannel, they say !leave - Easy as pie.
 Respond  
p0d   -  Dec 31, 2009
*agrees with that needs have access levels or some sort of protection to keep from being abused
 Respond  
bugboy1028   -  Dec 31, 2009
I will agree with sunslayer. Also, if people find out that you are using script to join and part channel. They will probably send you to bad channel or send you to channel which cause you to part all of the channels
 Respond  
J4ckster   -  Dec 31, 2009
Are you being rude? Because you can't. Your saying you don't like the script.

I'm new to both of these, scripting with mIRC and Hawkee.
 Respond  
sunslayer   -  Dec 31, 2009
I'd combine the two events
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.