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

	<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-03-15T20:43:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-15T20:43:52-04:00</updated>

		<published>2005-03-15T20:43:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47726#p47726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47726#p47726"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47726#p47726"><![CDATA[
*/me* glares<br><br>I do!<br><br>Not that I have much use of it, or use it alot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Mar 15, 2005 8:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-03-15T11:28:21-04:00</updated>

		<published>2005-03-15T11:28:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47699#p47699</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47699#p47699"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47699#p47699"><![CDATA[
No need to discredit regexp just because you don't understand it  <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=24">greenbear</a> — Tue Mar 15, 2005 11:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-15T08:16:20-04:00</updated>

		<published>2005-03-15T08:16:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47689#p47689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47689#p47689"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47689#p47689"><![CDATA[
But I don't see the use for regexp here. I mean basically its used for complex matching and here you are just using it to match 2 plain strings combined into one.<br><br>{^(Q!<a href="mailto:TheQBot@CServe.quakenet.org">TheQBot@CServe.quakenet.org</a>)$} $from]}<br><br>If you were to use a complex match for the string ChanServ!<a href="mailto:service@my.network.net">service@my.network.net</a> then I would understand, but using this for what it is basically not designed to do, but yet it still can do for it has greater ability and yet it is used for simple tasks, which can be done with simple string manipulation commands is not worth it.<br><br>As obviously little red riding hood has 2 ways to grandma's house. One is very long and tiring and one is very short. Obviously why would she walk a far distance just togo to the same place? Why not take the shorter route. The shorter route will make it easier togo, require less energry and she will reach in less time.<br><br>My point here is, use something simple to solve something simple. If the problem cannot be solved using simple techniques, then go ahead and use something which can the solve the problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Mar 15, 2005 8:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-03-15T04:58:43-04:00</updated>

		<published>2005-03-15T04:58:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47684#p47684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47684#p47684"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47684#p47684"><![CDATA[
I highly doubt anyone cares for the fact that regexp is about 13 ms or something like that slower than string match/equal etc.<br><br>For getting responses, It fast enough.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Mar 15, 2005 4:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-15T04:26:55-04:00</updated>

		<published>2005-03-15T04:26:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47683#p47683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47683#p47683"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47683#p47683"><![CDATA[
Regexp is slow, don't know why you would use it, when you can string match easily. When a network has ChanServ services, even if they are offline those nicks are sqlined, so no one can use them. So we don't bother to use the ident and hostname after the nick, just for security.<br><br>If you really want, you can use this, simple:<br><div class="codebox"><p>Code: </p><pre><code>if {[string equal "ChanServ!service@dal.net" "$nick!$uhost"]} {</code></pre></div>Obviously, replace <a href="mailto:service@dal.net">service@dal.net</a> by your networks services' mask. Also do an exact match 'string equal', no need for the -nocase switch or string match.<br><br>Plus in the end you can use:<br> putserv "PRIVMSG ChanServ<strong class="text-strong">@services.dal.net</strong> :#your stuff"<br><br>Just to be more secure, if you are a security geek.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Mar 15, 2005 4:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-03-15T02:51:46-04:00</updated>

		<published>2005-03-15T02:51:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47680#p47680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47680#p47680"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47680#p47680"><![CDATA[
You could cut off stuff like that by using things like, <br><div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase "chanserv" $nick]} {</code></pre></div>EDIT:<br><br>Here is a piece of code i made for a script of mine which records the chanlev from Q/L on Quakenet and saves them into an array.<br><div class="codebox"><p>Code: </p><pre><code>proc cflags::recordchanlev {nickname hostname handle arguments ****} {  variable flags  set from "${nickname}!${hostname}"  if {[regexp -nocase -- {^(Q!TheQBot@CServe.quakenet.org)$} $from]} {   # do stuff here  }}</code></pre></div>You could ofcourse just modify it, replace the Q!<a href="mailto:TheQBot@CServe.quakenet.org">TheQBot@CServe.quakenet.org</a> with Chanserv!&lt;whatever&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Mar 15, 2005 2:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-14T04:47:12-04:00</updated>

		<published>2005-03-14T04:47:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47614#p47614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47614#p47614"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47614#p47614"><![CDATA[
<blockquote class="uncited"><div>Thanks De Kus ... sounds good<br><br>However, would you expand on your answer a little<br><br>How/where do I look at raw server responses<br><br>Thanks</div></blockquote>if i recall right<br><br><div class="codebox"><p>Code: </p><pre><code>proc raw_server_notice {from key arg} {  #your stuff here  return 0;#required}bind raw - NOTICE raw_server_notice </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Mar 14, 2005 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-12T12:56:34-04:00</updated>

		<published>2005-03-12T12:56:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47490#p47490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47490#p47490"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47490#p47490"><![CDATA[
Heh, okay.<br><br>Rememeber that this code will execute on all type of notices. Private notices sent to the bot, notices sent to channels where the bot is on, and also even on server notices if I am correct.<br><br>So you have to check and decide through 'if' statements which type of notices you want and who should be sending these notices, in this case it would be private notices and being sent by ChanServ.<br><br>See my 'if' code above and use that one for your script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Mar 12, 2005 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-03-12T12:38:56-04:00</updated>

		<published>2005-03-12T12:38:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47489#p47489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47489#p47489"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47489#p47489"><![CDATA[
Thanks again Awyeah<br><br>Got it working<br><br>Differences between what you suggest and my code are :-<br><br>mask "*" instead of just *<br><br>{dest ""} instead of just dest<br><br>I will work backwards to see what breaks it<br><br>Thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sat Mar 12, 2005 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-12T12:18:50-04:00</updated>

		<published>2005-03-12T12:18:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47487#p47487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47487#p47487"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47487#p47487"><![CDATA[
Try this and see the reply in DCC:<br><div class="codebox"><p>Code: </p><pre><code>bind notc - "*" test:noticeproc test:notice {nick uhost hand text {dest ""}} { putlog "CATCHED NOTICE: From: $nick - To: $dest - Message: $text"}</code></pre></div>You code looks fine to me, don't know why it doesn't work. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>Try typing <strong class="text-strong">.tcl set errorInfo</strong> in DCC after you execute it maybe it generates a error, which I think not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Mar 12, 2005 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-03-12T12:09:36-04:00</updated>

		<published>2005-03-12T12:09:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47486#p47486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47486#p47486"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47486#p47486"><![CDATA[
Thanks awyeah<br><br>I have now tried to trap all private notices in order to see what $nick, $dest and $arg are, using code as follows :-<br><br># ---------- ADDAOP ---------- #<br><br>set vChannelServices "<a href="mailto:chanserv@services.dal.net">chanserv@services.dal.net</a>"<br><br>proc pToolsAddaop {nick uhost hand chan arg} {<br>  global vChannelServices<br>  putserv "PRIVMSG $vChannelServices :AOP $chan ADD $arg"<br>}<br><br>bind NOTC - * pToolsServiceResponse<br><br>proc pToolsServiceResponse {nick uhost hand arg dest} {<br>  putserv "PRIVMSG #channel :test succeeded, nick is $nick, destination is $dest, text is $arg"<br>}<br><br>Even this does not work. Can you see what is wrong with it?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sat Mar 12, 2005 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-12T10:26:59-04:00</updated>

		<published>2005-03-12T10:26:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47477#p47477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47477#p47477"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47477#p47477"><![CDATA[
As far as I know bind notc will definately trigger private notices. Basically you have to check the destination if it is a channel or the bot's nick and if nick is ChanServ, then go ahead and do as you like.<br><div class="codebox"><p>Code: </p><pre><code>bind notc - * pToolsAopExists................................................. if {[isbotnick $dest] &amp;&amp; [string equal "ChanServ" $nick]} {</code></pre></div>For matching:<div class="codebox"><p>Code: </p><pre><code> if {[string match "*already exists on the * list*" $arg]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Mar 12, 2005 10:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-12T09:55:27-04:00</updated>

		<published>2005-03-12T09:55:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47474#p47474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47474#p47474"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47474#p47474"><![CDATA[
<blockquote class="uncited"><div>How/where do I look at raw server responses</div></blockquote>read to manual to enable raw logging in partyline (.help console) or log file.<br>I personally have an extra file for raw log, because this is best see what the server really writes, because the Texteditors don't phrase any (ANSI, IRC, ...) control codes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Mar 12, 2005 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-03-12T09:53:25-04:00</updated>

		<published>2005-03-12T09:53:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47473#p47473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47473#p47473"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47473#p47473"><![CDATA[
Thanks De Kus ... sounds good<br><br>However, would you expand on your answer a little<br><br>How/where do I look at raw server responses<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sat Mar 12, 2005 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-12T09:48:31-04:00</updated>

		<published>2005-03-12T09:48:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47472#p47472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47472#p47472"/>
		<title type="html"><![CDATA[Help trapping notices from chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47472#p47472"><![CDATA[
best you check raw server incoming traffic and look for the the keyword/number for the respond and bind it to RAW (remember to return 1 only if it was the message your wanted to trap!).<br>another possiblilty is that the string contains some false whitespaces or contraol codes (I once had a problem on another network, that nickserv put 2 spaces between and . and the next word, which wasnt been seen in mIRC of course, but for matching the string the bot will matter <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=2382">De Kus</a> — Sat Mar 12, 2005 9:48 am</p><hr />
]]></content>
	</entry>
	</feed>
