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

	<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>2009-05-11T09:48:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-05-11T09:48:56-04:00</updated>

		<published>2009-05-11T09:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88731#p88731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88731#p88731"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88731#p88731"><![CDATA[
Blackshadow, it will only work under certain conditions, as mentioned in my previous post.<br><br>If we exclude the case of the user not being online at all, an "all case" solution would require a who/whois-request for the nickname in question, parsing of the response.<br><br>This would then have to be used to search the userlist for a match, which finally would be used to remove the user record.<br><br>This kind of scripting requires caution however, as you'd end up using raw bindings - and if not done properly, will screw up your eggdrop.<br><br>A much simpler approach would be to require the operator to know the handle rather than the nickname, as we wouldn't have to bother with various lookups...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon May 11, 2009 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BLaCkShaDoW]]></name></author>
		<updated>2009-05-11T09:13:04-04:00</updated>

		<published>2009-05-11T09:13:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88730#p88730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88730#p88730"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88730#p88730"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>It's related to this line:<div class="codebox"><p>Code: </p><pre><code>set hand [nick2hand $nick $chan]</code></pre></div>In order for eggdrop to convert a nickname into a handle, it needs to "see" the nickname =&gt; that is, the nickname has to be on a channel your eggdrop is monitoring. Further, this code tells your eggdrop to only look in the channel where the command was issued. Since the nickname is not there, this will return "*" indicating no such user... And the script will abort.<br><br>You could try removing the channel parameter on that line, but even so, this code would only work if the nickname is seen in one of your eggdrop's channels...</div></blockquote>Understood nml375, thank you 4 exaplaining...but there has to be a way to fix the script. Nobody knows how to ? Or can smb give me another code ?</div></blockquote>just replace [nick2hand $nick $chan] with [nick2hand $nick] and it will work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10416">BLaCkShaDoW</a> — Mon May 11, 2009 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2009-05-09T11:18:05-04:00</updated>

		<published>2009-05-09T11:18:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88712#p88712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88712#p88712"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88712#p88712"><![CDATA[
<blockquote class="uncited"><div>It's related to this line:<div class="codebox"><p>Code: </p><pre><code>set hand [nick2hand $nick $chan]</code></pre></div>In order for eggdrop to convert a nickname into a handle, it needs to "see" the nickname =&gt; that is, the nickname has to be on a channel your eggdrop is monitoring. Further, this code tells your eggdrop to only look in the channel where the command was issued. Since the nickname is not there, this will return "*" indicating no such user... And the script will abort.<br><br>You could try removing the channel parameter on that line, but even so, this code would only work if the nickname is seen in one of your eggdrop's channels...</div></blockquote>Understood nml375, thank you 4 exaplaining...but there has to be a way to fix the script. Nobody knows how to ? Or can smb give me another code ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Sat May 09, 2009 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-05-09T10:21:40-04:00</updated>

		<published>2009-05-09T10:21:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88711#p88711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88711#p88711"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88711#p88711"><![CDATA[
It's related to this line:<div class="codebox"><p>Code: </p><pre><code>set hand [nick2hand $nick $chan]</code></pre></div>In order for eggdrop to convert a nickname into a handle, it needs to "see" the nickname =&gt; that is, the nickname has to be on a channel your eggdrop is monitoring. Further, this code tells your eggdrop to only look in the channel where the command was issued. Since the nickname is not there, this will return "*" indicating no such user... And the script will abort.<br><br>You could try removing the channel parameter on that line, but even so, this code would only work if the nickname is seen in one of your eggdrop's channels...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat May 09, 2009 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2009-05-09T06:41:30-04:00</updated>

		<published>2009-05-09T06:41:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88710#p88710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88710#p88710"/>
		<title type="html"><![CDATA[Re: !deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88710#p88710"><![CDATA[
<blockquote class="uncited"><div>You should remove this :<br><div class="codebox"><p>Code: </p><pre><code>if {![onchan $nick $chan]} {             puthelp "NOTICE $me :Sorry, but I don't see $nick in $chan."       return 0    } </code></pre></div></div></blockquote>I removed the lines but now the Bot says that the User I want to delete is not a registered one =&gt;<br><br>DCC:<br>.userlist +o #chan<br>List of my users : <strong class="text-strong">Enigma</strong> ClubH0uSe ReSpEkT Bastty- sAd\\ monck dns AndreuLs Semafoare ZyklonB kid^ Igorash Pisi` desc MrKry Nicushor W1nd0ws op mira- Aycha<br><br>On chan:<br>&lt;+Me&gt; !deluser <strong class="text-strong">Enigma</strong><br>-Bot- Enigma is not a registered user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Sat May 09, 2009 6:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BLaCkShaDoW]]></name></author>
		<updated>2009-05-08T14:51:00-04:00</updated>

		<published>2009-05-08T14:51:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88703#p88703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88703#p88703"/>
		<title type="html"><![CDATA[Re: !deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88703#p88703"><![CDATA[
<blockquote class="uncited"><div>&lt;@eXtremer&gt; !deluser nick<br>-Bot- Sorry, but I don't see nick in #testing.<br><div class="codebox"><p>Code: </p><pre><code>### !DELUSER &lt;nick&gt;proc pub_lol_deluser {me b c chan arg} {set arg [charfilter $arg]global lol botnickif {![check $c $me $b]} {if {$lol(silent) == 1 || [checksilent $c]} {return 0}            puthelp "NOTICE $me :You need to be identified to use this function. Type .identhelp in the partyline for more info. : \002/msg $botnick id &lt;password&gt;\002 or \002/msg $botnick silent &lt;password&gt;\002 to no more receive this warning."return 0}if {[llength $arg] != 1} {puthelp "NOTICE $me :\002Usage:\002 [string trim $lol(cmdchar)]deluser &lt;nick&gt;"return 0}set nick [lindex $arg 0]set bot [strlwr $botnick]set hand [nick2hand $nick $chan]if {![onchan $nick $chan]} {            puthelp "NOTICE $me :Sorry, but I don't see $nick in $chan."return 0}if {[strlwr $nick] == $bot} {            puthelp "NOTICE $me :Yeah right, like I'm going to let you delete ME!"return 0}if {[getting-users]} {            puthelp "NOTICE $me :Sorry, but I'm transferring the userfile, try later."return 0}if {![validuser $hand]} {puthelp "NOTICE $me :$nick is not a registered user."return 0}if {[matchattr $hand n]} {puthelp "NOTICE $me :You can't delete a bot owner."return 0}deluser $handboot $hand "You have been deleted"      puthelp "NOTICE $me :$nick has been removed from the userlist."      puthelp "NOTICE $nick :You have been removed from the userlist by $me."if {[botisop $chan]} {pushmode $chan -o $nick}return 0}</code></pre></div><br>Is it possible to delete a username even if he is not on the channel ?!<br>Thanks in advance.</div></blockquote>You should remove this :<br><div class="codebox"><p>Code: </p><pre><code>if {![onchan $nick $chan]} {             puthelp "NOTICE $me :Sorry, but I don't see $nick in $chan."       return 0    } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10416">BLaCkShaDoW</a> — Fri May 08, 2009 2:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2009-05-08T07:57:04-04:00</updated>

		<published>2009-05-08T07:57:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88697#p88697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88697#p88697"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88697#p88697"><![CDATA[
The same question...maybe someone knows how to fix it ? Or at least give me another code (script) that will work as I wish.<br>Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Fri May 08, 2009 7:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2008-09-03T02:18:18-04:00</updated>

		<published>2008-09-03T02:18:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85033#p85033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85033#p85033"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85033#p85033"><![CDATA[
<blockquote class="uncited"><div>Use the native .-user command from the dcc partyline.</div></blockquote>I know about the .-user partyline command, but there are local Owners that don't have acc to partyline (Only me, for security reasons &amp; other..) that can't delete a user, so I need this pub cmd to work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Wed Sep 03, 2008 2:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-09-02T13:30:16-04:00</updated>

		<published>2008-09-02T13:30:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85023#p85023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85023#p85023"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85023#p85023"><![CDATA[
Use the native .-user command from the dcc partyline.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Sep 02, 2008 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2008-09-02T13:26:01-04:00</updated>

		<published>2008-09-02T13:26:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85022#p85022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85022#p85022"/>
		<title type="html"><![CDATA[!deluser is not working if nick is not on chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85022#p85022"><![CDATA[
&lt;@eXtremer&gt; !deluser nick<br>-Bot- Sorry, but I don't see nick in #testing.<br><div class="codebox"><p>Code: </p><pre><code>### !DELUSER &lt;nick&gt;proc pub_lol_deluser {me b c chan arg} {set arg [charfilter $arg]global lol botnickif {![check $c $me $b]} {if {$lol(silent) == 1 || [checksilent $c]} {return 0}            puthelp "NOTICE $me :You need to be identified to use this function. Type .identhelp in the partyline for more info. : \002/msg $botnick id &lt;password&gt;\002 or \002/msg $botnick silent &lt;password&gt;\002 to no more receive this warning."return 0}if {[llength $arg] != 1} {puthelp "NOTICE $me :\002Usage:\002 [string trim $lol(cmdchar)]deluser &lt;nick&gt;"return 0}set nick [lindex $arg 0]set bot [strlwr $botnick]set hand [nick2hand $nick $chan]if {![onchan $nick $chan]} {            puthelp "NOTICE $me :Sorry, but I don't see $nick in $chan."return 0}if {[strlwr $nick] == $bot} {            puthelp "NOTICE $me :Yeah right, like I'm going to let you delete ME!"return 0}if {[getting-users]} {            puthelp "NOTICE $me :Sorry, but I'm transferring the userfile, try later."return 0}if {![validuser $hand]} {puthelp "NOTICE $me :$nick is not a registered user."return 0}if {[matchattr $hand n]} {puthelp "NOTICE $me :You can't delete a bot owner."return 0}deluser $handboot $hand "You have been deleted"      puthelp "NOTICE $me :$nick has been removed from the userlist."      puthelp "NOTICE $nick :You have been removed from the userlist by $me."if {[botisop $chan]} {pushmode $chan -o $nick}return 0}</code></pre></div><br>Is it possible to delete a username even if he is not on the channel ?!<br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Tue Sep 02, 2008 1:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
