<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13164" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-07-18T23:39:18-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13164</id>

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T23:39:18-04:00</updated>

		<published>2007-07-18T23:39:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74563#p74563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74563#p74563"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74563#p74563"><![CDATA[
*scratches* his head and wonders why..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 11:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T23:06:38-04:00</updated>

		<published>2007-07-18T23:06:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74562#p74562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74562#p74562"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74562#p74562"><![CDATA[
ok i did that and got same thing again.. i did have other scripts but i didnt load them and did a restart. maybe i should use a fresh bot. thanks for all the help i will try on a new one tomorrow.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 11:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T22:50:35-04:00</updated>

		<published>2007-07-18T22:50:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74561#p74561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74561#p74561"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74561#p74561"><![CDATA[
I've tried three different variations of the script, still the same, meaning you are using some other scripts which are counter kicking those users, because the script I coded for you is correct, no logic problem what so ever.<br><br>Remove all scripts and only use the one I gave. Then restart and then check the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T22:44:18-04:00</updated>

		<published>2007-07-18T22:44:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74560#p74560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74560#p74560"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74560#p74560"><![CDATA[
same thing..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 10:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T22:36:45-04:00</updated>

		<published>2007-07-18T22:36:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74559#p74559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74559#p74559"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74559#p74559"><![CDATA[
Replace these lines:<br><div class="codebox"><p>Code: </p><pre><code> if {[lsearch -exact [split [string tolower $nicksnotallowed(nicks)]] [string tolower $nick]] == -1} {   putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"   putserv "KICK $chan $nick: Your nick is not allowed on this channel"  } else {   return 0  }}</code></pre></div>with these and then try:<br><div class="codebox"><p>Code: </p><pre><code> if {[lsearch -exact [split [string tolower $nicksnotallowed(nicks)]] [string tolower $nick]] != -1} {return 0}  putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"  putserv "KICK $chan $nick: Your nick is not allowed on this channel"  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 10:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T22:29:46-04:00</updated>

		<published>2007-07-18T22:29:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74557#p74557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74557#p74557"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74557#p74557"><![CDATA[
still banning users in the list. dunno.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 10:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T22:20:17-04:00</updated>

		<published>2007-07-18T22:20:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74556#p74556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74556#p74556"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74556#p74556"><![CDATA[
The code seems perfectly OK, not sure why that is happening. Try this:<br><div class="codebox"><p>Code: </p><pre><code>#Set channels you want this script to work onset nicksnotallowed(chans) "#chan1 #chan2 #chan3"#Set the nicks you want to allow in the channel seperated in a#new line withing quotations marks. This is not case sensitive.set nicksnotallowed(nicks) {"nick1""nick2""nick3"}bind join - "*" nicks:not:allowedproc nicks:not:allowed {nick uhost hand chan} { global nicksnotallowed if {[isbotnick $nick] || ![botisop $chan]} {return 0} if {[lsearch -exact [split [string tolower $nicksnotallowed(chans)]] [string tolower $chan]] == -1} {return 0} if {[lsearch -exact [split [string tolower $nicksnotallowed(nicks)]] [string tolower $nick]] == -1} {   putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"   putserv "KICK $chan $nick: Your nick is not allowed on this channel"  } else {   return 0  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 10:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T21:27:42-04:00</updated>

		<published>2007-07-18T21:27:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74554#p74554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74554#p74554"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74554#p74554"><![CDATA[
hmm.. the bot is banning nicks in the list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T20:58:36-04:00</updated>

		<published>2007-07-18T20:58:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74551#p74551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74551#p74551"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74551#p74551"><![CDATA[
Cool. I will take a look at it. Thanks again for your help.<br><br>Nice looking script. In fact that is how I need to add nicks to the allow list, with different levels of access. Maybe I can figure out how to replace a few things and make it work.. then again maybe not.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T20:56:57-04:00</updated>

		<published>2007-07-18T20:56:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74549#p74549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74549#p74549"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74549#p74549"><![CDATA[
Yeah that can be done, but you would have to make a file on the shell to add or delete nicknames and store them in it. It would be a bit more complicated as each nick would be to have an entry on a channel.<br><br>Something like: "nick:#chan" can be stored for each entry.<br><br>I am currently busy at the moment. Goodluck, hope someone else can do the rest for you, heh.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br>I did make a script of a similar sort recently, which utilizes the same exact database structure, but its for adding/deleting auto-voice users from a channel. Maybe you can have a look at it and try to work on it yourself:<br><br>Here is the link:<br><span style="color:blue"><a href="http://channels.dal.net/awyeah/scripts/voiceserv.tcl" class="postlink">http://channels.dal.net/awyeah/scripts/voiceserv.tcl</a></span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 8:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T20:47:22-04:00</updated>

		<published>2007-07-18T20:47:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74547#p74547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74547#p74547"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74547#p74547"><![CDATA[
Wow... thanks a bunch. This is what I have been looking for. Would it be possible to allow others to add to the list, without having to edit the script? Like !add nick ? anyways this works for me   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 8:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T20:40:19-04:00</updated>

		<published>2007-07-18T20:40:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74546#p74546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74546#p74546"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74546#p74546"><![CDATA[
These type of scripts are already present if you search the forum thoroughly. Anyway heres a short snipplet for you, as part of your request.<br><div class="codebox"><p>Code: </p><pre><code>#Set channels you want this script to work onset nicksnotallowed(chans) "#chan1 #chan2 #chan3"#Set the nicks you want to allow in the channel seperated in a#new line withing quotations marks. This is not case sensitive.set nicksnotallowed(nicks) {"nick1""nick2""nick3"}bind join - "*" nicks:not:allowedproc nicks:not:allowed {nick uhost hand chan} { global nicksnotallowed if {[isbotnick $nick] || ![botisop $chan]} {return 0} if {[lsearch -exact [split [string tolower $nicksnotallowed(chans)]] [string tolower $chan]] == -1} {return 0} foreach user [split $nicksnotallowed(nicks)] {  if {[string equal -nocase $user $nick]} {   set foundnick 1; break   }  }  if {![info exists foundnick]} {   putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"   putserv "KICK $chan $nick: Your nick is not allowed on this channel"  } else {   return 0  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 8:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T20:19:52-04:00</updated>

		<published>2007-07-18T20:19:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74544#p74544</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74544#p74544"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74544#p74544"><![CDATA[
yes.. to join the channel.. nicks not on the list would be kicked/banned<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 8:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-18T20:18:45-04:00</updated>

		<published>2007-07-18T20:18:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74543#p74543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74543#p74543"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74543#p74543"><![CDATA[
No, sorry I don't have any idea, neither I know about any script which can do that. What is ur definition of allowing certain nicks to access a channel? Allowing them to only join? or what? Please clarify.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 18, 2007 8:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[outthere]]></name></author>
		<updated>2007-07-18T18:49:50-04:00</updated>

		<published>2007-07-18T18:49:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74531#p74531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74531#p74531"/>
		<title type="html"><![CDATA[kick script  [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74531#p74531"><![CDATA[
thanks ­awyeah but after trying this i realize its not what i really need. I have searched through many sites and pages of scripts and I am pretty sure there should be one like i need but cant find it. I am looking for a script that I can use to allow only certain nicks access to a channel. I dont want to use the userfile because there are quite a few nicks and alot dont have a set host. Do you happen to know of an existing script like that?<br><br>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7035">outthere</a> — Wed Jul 18, 2007 6:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
