<?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/10356" />

	<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>2005-11-15T16:08:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2005-11-15T16:08:40-04:00</updated>

		<published>2005-11-15T16:08:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57470#p57470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57470#p57470"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57470#p57470"><![CDATA[
Yes!! Thank you very much! Apreciate it! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Tue Nov 15, 2005 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-15T16:01:02-04:00</updated>

		<published>2005-11-15T16:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57469#p57469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57469#p57469"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57469#p57469"><![CDATA[
set mask [getchanhost $whom $where] -&gt; But reutrned <a href="mailto:T-Xorcist@host.com">T-Xorcist@host.com</a> ?<br><br>Well, it's simple then.<br><br>Use:<br><br>scan $mask {%*[^@]@%s} host <br><br>And while baning use variable host instead of mask (*!*@$host).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Tue Nov 15, 2005 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2005-11-15T15:41:00-04:00</updated>

		<published>2005-11-15T15:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57466#p57466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57466#p57466"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57466#p57466"><![CDATA[
Yes, but now it bans my hostmask.<br><br>I did not ask my question the way I should.<br><br>I use <strong class="text-strong">/msg bot ban #channel nickname</strong><br><br>How do I get the host of nickname when I try to ban that nick?<br><br>PS: I had this first: set mask [getchanhost $whom $where]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Tue Nov 15, 2005 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-15T15:31:48-04:00</updated>

		<published>2005-11-15T15:31:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57465#p57465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57465#p57465"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57465#p57465"><![CDATA[
scan $uhost {%*[^@]@%s} host<br><br>And then you can use this<br><br>putquick "MODE $chan +b *!*@$host<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Tue Nov 15, 2005 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2005-11-15T08:21:38-04:00</updated>

		<published>2005-11-15T08:21:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57446#p57446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57446#p57446"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57446#p57446"><![CDATA[
Well, here you get the mask right?<br><br>set mask $n![getchanhost $n $chan]<br><br>This mask will have as result (example) <a href="mailto:T-Xorcist@host.com">T-Xorcist@host.com</a> right?<br><br>But how can you get the mask <strong class="text-strong">only</strong> for *!*@host.com<br><br>So that you can get everything behind the @, but not in front?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Tue Nov 15, 2005 8:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-15T05:41:56-04:00</updated>

		<published>2005-11-15T05:41:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57441#p57441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57441#p57441"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57441#p57441"><![CDATA[
<blockquote class="uncited"><div>How do you get the format like *!*@user.host.com instead of *!*<a href="mailto:T-Xorcist@user.host.com">T-Xorcist@user.host.com</a> in this particular script? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>What do you mean?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Nov 15, 2005 5:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2005-11-14T22:06:34-04:00</updated>

		<published>2005-11-14T22:06:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57420#p57420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57420#p57420"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57420#p57420"><![CDATA[
How do you get the format like *!*@user.host.com instead of *!*<a href="mailto:T-Xorcist@user.host.com">T-Xorcist@user.host.com</a> in this particular script? <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=6980">T-Xorcist</a> — Mon Nov 14, 2005 10:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-08-25T03:59:39-04:00</updated>

		<published>2005-08-25T03:59:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54785#p54785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54785#p54785"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54785#p54785"><![CDATA[
Obviously if that record hasn't been yet removed from the bots memory. So here being on the safeside, using it when that person not in the channel wouldn't be my idea of a working script, because sometimes the unlikely can always happen.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Aug 25, 2005 3:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-08-25T02:50:34-04:00</updated>

		<published>2005-08-25T02:50:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54783#p54783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54783#p54783"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54783#p54783"><![CDATA[
getchanhost doesn't require a channel.<br>So if you just use getchanhost $nick it will return the host if it knows that host.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Aug 25, 2005 2:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-25T02:12:00-04:00</updated>

		<published>2005-08-25T02:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54782#p54782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54782#p54782"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54782#p54782"><![CDATA[
there ought to be some limit on begging for scripts, you know<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Aug 25, 2005 2:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-08-25T02:04:50-04:00</updated>

		<published>2005-08-25T02:04:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54781#p54781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54781#p54781"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54781#p54781"><![CDATA[
Hello Sir Fz, <br><br>You ROCK <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"> <br><br>The codes which u had given works PERFECT <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Is it possible to record the kicks and bans happening in the channel.. and save it in a file.. and get the infos later on .. when we type !banfind nick.. so that the bot can get the info from that file.. as to who kicked or who banned and for what reason.. just like how seenbot works.. when we type !seen nick.. it will gives the info abt the nick when last joined or last quit.. etc etc. Likewise i would like to get the infos abt who kicked the nick .. or who banned and for what reason. <br><br>It will be a helpful script if it is possible to make one. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br><br>Rgds<br><br>Skipper<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Thu Aug 25, 2005 2:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-08-24T12:23:43-04:00</updated>

		<published>2005-08-24T12:23:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54757#p54757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54757#p54757"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54757#p54757"><![CDATA[
Try<div class="codebox"><p>Code: </p><pre><code>set helpchan #chan1 set mainchan #chan2 bind pub - !unban remove:ban proc remove:ban {nick uhost hand chan arg} {  global mainchan helpchan  if {![string equal -nocase $helpchan $chan]} {return 0}  if {[isop $nick $chan] &amp;&amp; [onchan [set n [lindex [split $arg] 0]] $chan]} {   set mask $n![getchanhost $n $chan]   foreach ban [chanbans $mainchan] {    if {[string match -nocase [lindex $ban 0] $mask]} {     set fb [lindex $ban 0]     break    }   }  if {[info exists fb]} {   if {[botisop $mainchan]} {    pushmode $mainchan -b $fb    puthelp "privmsg $chan :Removed $fb from $mainchan."   } else {    puthelp "privmsg $chan :I'm not oped on $mainchan."   }  } else {   puthelp "privmsg $chan :$n is not banned on $mainchan."  } }  }</code></pre></div>Note that you have to be oped in the helpchan when issuing the !unban command, and nick should be in it as well (also !unban only works in the helpchan to remove bans from mainchan)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Aug 24, 2005 12:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Skipper]]></name></author>
		<updated>2005-08-24T12:12:03-04:00</updated>

		<published>2005-08-24T12:12:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54756#p54756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54756#p54756"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54756#p54756"><![CDATA[
Hello Sir Fz, <br><br>No response from the bot when i type !unban Nick. <br><br>And Am not getting any error messages in the partyline of the bot.. wonder whats wrong.. and where it is wrong. <br><br><br>Rgds<br><br>Skipper<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6623">Skipper</a> — Wed Aug 24, 2005 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-08-24T09:19:00-04:00</updated>

		<published>2005-08-24T09:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54751#p54751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54751#p54751"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54751#p54751"><![CDATA[
Actually we can use getchanhost since nick is already in the helpchan (I dont know why I didn't think about this before)<br><br>This should do it Skipper.<div class="codebox"><p>Code: </p><pre><code>set helpchan #chan1 set mainchan #chan2 bind pub - !unban remove:ban proc remove:ban {nick uhost hand chan arg} {  global mainchan helpchan  if {![string equal -nocase $helpchan $chan] &amp;&amp; ![isop $nick $chan]} {return 0}  if {![onchan [set n [lindex [split $arg] 0]] $chan]} {  puthelp "privmsg $chan :$n is not here." } {  set mask $n![getchanhost $n $chan]   foreach ban [chanbans $mainchan] {    if {[string match -nocase $mask [lindex $ban 0]]} {     pushmode $mainchan -b [lindex $ban 0]     puthelp "privmsg $chan :Removed [lindex $ban 0] from the banlist of $mainchan."     break    }   }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Aug 24, 2005 9:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-08-24T08:10:37-04:00</updated>

		<published>2005-08-24T08:10:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54749#p54749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54749#p54749"/>
		<title type="html"><![CDATA[Unbanning through the bot.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54749#p54749"><![CDATA[
<blockquote class="uncited"><div>This should do it<div class="codebox"><p>Code: </p><pre><code>set helpchan #chan1set mainchan #chan2bind pub - !unban remove:banproc remove:ban {nick uhost hand chan arg} { global mainchan helpchan if {![string equal -nocase $helpchan $chan] &amp;&amp; ![isop $nick $chan]} {return 0} set mask [lindex [split $arg] 0] foreach ban [chanbans $mainchan] {  if {[string match -nocase $mask [lindex $ban 0]]} {   pushmode $mainchan -b [lindex $ban 0]   puthelp "privmsg $chan :Removed [lindex $ban 0] from the banlist of $mainchan."   break  } }}</code></pre></div>syntax: !unban nick!identd@host</div></blockquote>Actually Sir_Fz I don't think you fully understood what he mean't. He said that !unban &lt;nickname&gt; would look up a users host somehow (WHOIS most probobaly for which you need a definate bind raw) since we cannot use getchanhost or any other command as that nick won't be in the channel since he/she is banned and most likely kicked too. Upon getting the users host, try matching it with the channels banlist and remove all bans which affect that user. So if you read the explanation of my idea, maybe you will know how to implement it -- or maybe you have a different way<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Aug 24, 2005 8:10 am</p><hr />
]]></content>
	</entry>
	</feed>
