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

	<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>2004-09-27T02:19:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-27T02:19:52-04:00</updated>

		<published>2004-09-27T02:19:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41340#p41340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41340#p41340"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41340#p41340"><![CDATA[
No doubt, I can surely make a difference.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 27, 2004 2:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-09-27T02:17:04-04:00</updated>

		<published>2004-09-27T02:17:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41339#p41339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41339#p41339"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41339#p41339"><![CDATA[
ok now its working, and the second one is working too,  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><br>Thanks awyeah  <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=5215">lsn</a> — Mon Sep 27, 2004 2:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-27T01:54:47-04:00</updated>

		<published>2004-09-27T01:54:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41338#p41338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41338#p41338"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41338#p41338"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[08:43:56] &lt;aZ&gt; OPER UP: * :*** Notice -- nick (ident@host) is now operator (O)</code></pre></div>For this message it should be lindex 4 for the nick and lindex 5 for the ident and host. So now combining it all together we will have:<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $home :OPERUP: [lindex $arg 4] [lindex $arg 5] is now an IRC Operator."</code></pre></div>enjoy!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 27, 2004 1:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-09-27T01:45:01-04:00</updated>

		<published>2004-09-27T01:45:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41337#p41337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41337#p41337"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41337#p41337"><![CDATA[
i get<div class="codebox"><p>Code: </p><pre><code>[08:43:56] &lt;aZ&gt; OPER UP: * :*** Notice -- nick (ident@host) is now operator (O)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Mon Sep 27, 2004 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-27T01:28:47-04:00</updated>

		<published>2004-09-27T01:28:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41336#p41336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41336#p41336"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41336#p41336"><![CDATA[
Show me the output of the server notice, so I can split the correct lindex to get the nick. You have done it wrong. Add this line in your proc:<br><div class="codebox"><p>Code: </p><pre><code>putlog "OPER UP: $arg"</code></pre></div>Like this:<br>putlog "OPER UP: $arg"<br>putserv "PRIVMSG $home :OPERUP: [lindex [lindex $arg 0] 5] is now an IRC Operator." <br><br>Trigger the script and check in DCC with the bot the what result you get and paste it here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 27, 2004 1:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-09-27T01:18:22-04:00</updated>

		<published>2004-09-27T01:18:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41335#p41335</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41335#p41335"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41335#p41335"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>OPERUP:  is now an IRC Operator.</code></pre></div>not recognize <div class="codebox"><p>Code: </p><pre><code>[lindex [lindex $arg 0] 5]</code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Mon Sep 27, 2004 1:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-27T01:13:21-04:00</updated>

		<published>2004-09-27T01:13:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41334#p41334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41334#p41334"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41334#p41334"><![CDATA[
Define another raw with a new notice variable and a new proc. <br><br>If you have many like this you can combine all in one, but you will need a foreach loop and your patterns must be stored in list which you would have to do a string match on for each element in the list. The first pattern to be matched against the notice will trigger your putserv function.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 27, 2004 1:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-09-27T01:10:43-04:00</updated>

		<published>2004-09-27T01:10:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41333#p41333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41333#p41333"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41333#p41333"><![CDATA[
ok, and for the second one ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Mon Sep 27, 2004 1:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-27T01:10:59-04:00</updated>

		<published>2004-09-27T01:05:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41332#p41332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41332#p41332"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41332#p41332"><![CDATA[
Here you can use it like this. Define a match pattern and do a string match in the proc rather than matching your pattern in the bind itself.<br><br>Oh and by the way "return 1" on raw's not 'return 0' or 'return'. Returning 1 will cause no further action to be taken place after your proc has ended. It is the opposite of what is used in other binds. See tcl-commands.doc for more info on 'bind raw'.<br><div class="codebox"><p>Code: </p><pre><code>### VARIABLES ###set home "#mychan"set notice "is now operator"### SCRIPT ###bind raw - NOTICE oper:upproc oper:up {from keyword arg} { global home notice if {([string match "*$notice*" $arg])} {  putserv "PRIVMSG $home :OPERUP: [lindex [lindex $arg 0] 5] is now an IRC Operator."   return 1   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 27, 2004 1:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-09-27T00:52:40-04:00</updated>

		<published>2004-09-27T00:52:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41331#p41331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41331#p41331"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41331#p41331"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set home "#chan"bind raw -|- "NOTICE *is now operator*" operjoinproc operjoin {from idx args} {    global botnick home set nick [lindex [lindex $args 0] 4] puthelp "PRIVMSG $home :OPERJOIN: $nick is now an IRCoperator" return 0 }bind raw -|- "NOTICE *HACK(4)*" operopproc operop {from idx args} {    global botnick home set nick [lindex [lindex $args 0] 5] puthelp "PRIVMSG $home :OPERJOIN: $nick opmode command" return 0 }</code></pre></div>where i can define what notice he will use, because ,like is here he take only the first raw  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Mon Sep 27, 2004 12:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-09-25T23:55:49-04:00</updated>

		<published>2004-09-25T23:55:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41228#p41228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41228#p41228"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41228#p41228"><![CDATA[
there is no raw number code for a server notice, it is a keyword... NOTICE... simple as that...<br><br>bind raw - "NOTICE" proc_to_call<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Sep 25, 2004 11:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-25T09:30:45-04:00</updated>

		<published>2004-09-25T09:30:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41200#p41200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41200#p41200"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41200#p41200"><![CDATA[
This should be binded to the server notice. The 'bind notc' will not trigger when a server notice occurs. Bind notc only work of private/channel notices sent to the bot.<br><br>Yes you will need to bind to raw, if a raw key number is present then it will be better, otherwise just string match the $arg/$text.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Sep 25, 2004 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-25T04:21:10-04:00</updated>

		<published>2004-09-25T04:21:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41197#p41197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41197#p41197"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41197#p41197"><![CDATA[
<blockquote class="uncited"><div>hm... so what can i do then ?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>you can bind to raw:<div class="codebox"><p>Code: </p><pre><code>    (17) RAW (stackable)         bind raw &lt;flags&gt; &lt;keyword&gt; &lt;proc&gt;         procname &lt;from&gt; &lt;keyword&gt; &lt;text&gt;         Description: previous versions of Eggdrop required a special compile           option to enable this binding, but it's now standard. The keyword           is either a numeric, like "368", or a keyword, such as "PRIVMSG".           from will be the server name or the source user (depending on           the keyword); flags are ignored. The order of the arguments is           identical to the order that the IRC server sends to the bot. The           pre-processing  only splits it apart enough to determine the           keyword. If the proc returns 1, Eggdrop will not process the line           any further (this could cause unexpected behavior in some cases).         Module: server</code></pre></div>or bind to msgm, as a PRIVMSG.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sat Sep 25, 2004 4:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-09-25T03:25:19-04:00</updated>

		<published>2004-09-25T03:25:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41196#p41196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41196#p41196"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41196#p41196"><![CDATA[
hm... so what can i do then ?  <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=5215">lsn</a> — Sat Sep 25, 2004 3:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-25T02:58:16-04:00</updated>

		<published>2004-09-25T02:58:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41195#p41195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41195#p41195"/>
		<title type="html"><![CDATA[bind notc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41195#p41195"><![CDATA[
Quoted from tcl-commands.doc:<div class="codebox"><p>Code: </p><pre><code>NOTC (stackable)         bind notc &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt; &lt;dest&gt;         Description: dest will be a nickname (the bot's nickname,           obviously) or a channel name. mask is matched against the entire           notice and can contain wildcards. It is considered a breach of           protocol to respond to a /notice on IRC, so this is intended for           internal use (logging, etc.) only. Note that server notices do not           trigger the NOTC bind.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sat Sep 25, 2004 2:58 am</p><hr />
]]></content>
	</entry>
	</feed>
