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

	<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>2003-07-02T04:29:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-02T04:29:41-04:00</updated>

		<published>2003-07-02T04:29:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22879#p22879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22879#p22879"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22879#p22879"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind raw - 324 procnameproc procname {from key arg} {  blablabla... code in here}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jul 02, 2003 4:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-02T01:31:29-04:00</updated>

		<published>2003-07-02T01:31:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22875#p22875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22875#p22875"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22875#p22875"><![CDATA[
RAW (stackable)<br><br>bind raw &lt;flags&gt; &lt;keyword-mask&gt; &lt;proc&gt;<br>procname &lt;from&gt; &lt;keyword&gt; &lt;text&gt;<br><br>Description: previous versions of Eggdrop required a special compile option to enable this binding, but it's now standard. The mask is checked against the keyword (either a numeric, like "368", or a keyword, like "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 your bot to behave oddly in some cases).<br><br>im really not sure on this bind raw buisness<br><br>the lines im recieving is<div class="codebox"><p>Code: </p><pre><code>[06:04] [@] irc-server.name.se 324 Botnick #xxx +sptinSl 8[06:04] [@] irc-server.name.se 329 Botnick #xxx 1057019448</code></pre></div>obviously im only interested in line "324"<br><br>so its  ???<br><div class="codebox"><p>Code: </p><pre><code>bind raw  flags??? 324 proc raw_modes irc.server.name.se 324 "+sptinSl *"</code></pre></div>now im really lost <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>struggling with any bind calls includine a simple bind pub to create a public command to switch +S on.<br><br>flags are ignored losing me further <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>and i have 10 servers in my connect list, this surely will present me with further problems<br><br>and the last bit is a cause for concern :O<br>If the proc returns 1, Eggdrop will not process the line any further (this could cause your bot to behave oddly in some cases).<p>Statistics: Posted by Guest — Wed Jul 02, 2003 1:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-01T18:26:27-04:00</updated>

		<published>2003-07-01T18:26:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22845#p22845</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22845#p22845"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22845#p22845"><![CDATA[
now... if the <em class="text-italics">getchanmode</em> command doesn't return all chanmodes set, make the bot send the MODE command to the server<div class="codebox"><p>Code: </p><pre><code>putserv "MODE $chan"</code></pre></div> it will give you the list of chanmodes set, then you just have to use <em class="text-italics">bind raw</em> to catch the return msg and pull out the correct item... ie the chanmodes[/quote]<br><br>ah didnt quite read all your msg proply ok well its not returning all set modes<br><br>putserv bit i understand<br><br>but what is bind raw<p>Statistics: Posted by Guest — Tue Jul 01, 2003 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-01T17:21:11-04:00</updated>

		<published>2003-07-01T17:21:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22842#p22842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22842#p22842"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22842#p22842"><![CDATA[
[quote="Papillon"]<div class="codebox"><p>Code: </p><pre><code>if {["$cur_mode" == "+npstl *"]} {continue}</code></pre></div>^^ this is wrong, [] is used to mark of that "this is a command", also you can't use wildcards "*" in simple == matching, you have to use something like  <div class="codebox"><p>Code: </p><pre><code>if {[string match $cur_mode "+npstl *"]} {continue}</code></pre></div>I know the [] = command but then the console shows the invalid command, which = the text the $cur_mode is getting, and I repeat that text does not include caps S the custom mode for ssl enforced channel even tho its ON. the text in the console will show <div class="codebox"><p>Code: </p><pre><code>"invalid command +npstl"</code></pre></div>wheras when mode +S is also set it should read <div class="codebox"><p>Code: </p><pre><code>"invalid command +npsStl"</code></pre></div>so 1 of 2 things is happenning<br><br>getchanmode does not pull from the channel its self but the loaded chanmodes in eggdrop memory for the particular chan, or theres a bug in getchanmode command and its filtering caps chanmodes out.<p>Statistics: Posted by Guest — Tue Jul 01, 2003 5:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-01T10:10:13-04:00</updated>

		<published>2003-07-01T10:10:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22815#p22815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22815#p22815"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22815#p22815"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {["$cur_mode" == "+npstl *"]} {continue}</code></pre></div>^^ this is wrong, [] is used to mark of that "this is a command", also you can't use wildcards "*" in simple == matching, you have to use something like  <div class="codebox"><p>Code: </p><pre><code>if {[string match $cur_mode "+npstl *"]} {continue}</code></pre></div>now... if the <em class="text-italics">getchanmode</em> command doesn't return all chanmodes set, make the bot send the MODE command to the server<div class="codebox"><p>Code: </p><pre><code>putserv "MODE $chan"</code></pre></div> it will give you the list of chanmodes set, then you just have to use <em class="text-italics">bind raw</em> to catch the return msg and pull out the correct item... ie the chanmodes<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Jul 01, 2003 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-30T06:04:03-04:00</updated>

		<published>2003-06-30T06:04:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22738#p22738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22738#p22738"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22738#p22738"><![CDATA[
ok iv worked something out why i cant get this to work<br><br>by running the script this method<br><div class="codebox"><p>Code: </p><pre><code>set cur_mode     [getchanmode [strlwr $ssl_chan]]</code></pre></div>and using this as the if statement<br><div class="codebox"><p>Code: </p><pre><code>if {["$cur_mode" == "+npstl *"]} {continue}</code></pre></div>will give me an error, (because of the [] surrounding the compare) but it does show me the text <div class="codebox"><p>Code: </p><pre><code>[getchanmode [strlwr $ssl_chan]]</code></pre></div>is pyulling in the console and "S" is never included (even when its on) meaning its not pulling the info i require from the channel itself, but its getting it from the eggdrops own chanmode enforce data.<br><br>how can i query the real chanmodes NOT the eggdrops enforce chanmode ??<br><br>once iv found that out this tcl should support any new channel modes that eggdrop itself does'nt, and as iv heard eggdrop may never support some modes this will be really useful to many people<p>Statistics: Posted by Guest — Mon Jun 30, 2003 6:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-29T15:39:53-04:00</updated>

		<published>2003-06-29T15:39:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22719#p22719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22719#p22719"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22719#p22719"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[string match "*S*" [getchanmode [strlwr $chan]]]} {                      still missing one of these i think      ^         its been added here but is not on  your line</code></pre></div>anyway for sum strange reason its doing somethig today but it seems  it dont care wether the chan is +S or not it pushes it anyway<br>whereas it wasnt doing jack last night, still it was late.<br><br>anyway i dont think its quite what i asked for tho the line definately pulls the channel modes out<br><br>im looking for how to do this<br><div class="codebox"><p>Code: </p><pre><code>if {[string DOESNTmatch "*S*" [getchanmode [strlwr $chan]]]} {</code></pre></div> is what i really want so then it should pushmode as commanded ONLY when "+S" does not exist.<br>[/code]<p>Statistics: Posted by Guest — Sun Jun 29, 2003 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-29T04:23:10-04:00</updated>

		<published>2003-06-29T04:23:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22710#p22710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22710#p22710"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22710#p22710"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> Oups, damn, forgot to put the if.. sorry about that. It should be something like:<div class="codebox"><p>Code: </p><pre><code>if {[string match "*S*" [getchanmode [strlwr $chan]]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jun 29, 2003 4:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-28T21:50:53-04:00</updated>

		<published>2003-06-28T21:50:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22709#p22709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22709#p22709"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22709#p22709"><![CDATA[
<blockquote class="uncited"><div>invalid command name "strlwr" ?<br><br>make sure alltools.tcl is loaded<br>or do [string tolower $chan]</div></blockquote>no without the "if" in front of the given line i get string as invalid command which i presumed would happen before i did the new line.<br>as if im correct string is a secondary command related to preceeding commands ie if<br><br>without  the final closing bracket to the string compare query i get missing bracket,<br><br>which i alsio noticed before i did the new line.<br><br>however i did as coded above 1st to see<br><br>yes alltools is loaded its the 1st script in my scripts section full.conf<br><br>i take it with [string to lower $chan] you mean a line<br><br>set chan   [string tolower $chan]<br><br>if so iv tried it. not sure where in the script it should go so i tested above the proc <br><br>within the proc body below line if {![botisop<br><br>and below all<br><br>oh and just to note iv changed "set chan  "#bla" "<br>to set ssl_chan "#bla"<br><br>iv also tried set cur_mode  "[string [getchanmode [strlwr $chan]"<br><br>and tried to use "$cur_mode" match "*S*" in the if statement but its insisting on having a command there even tho iv used "" and comparing to texts shud be permitted according to documentation.<p>Statistics: Posted by Guest — Sat Jun 28, 2003 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-06-28T20:03:30-04:00</updated>

		<published>2003-06-28T20:03:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22708#p22708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22708#p22708"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22708#p22708"><![CDATA[
invalid command name "strlwr" ?<br><br>make sure alltools.tcl is loaded<br>or do [string tolower $chan]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sat Jun 28, 2003 8:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-28T19:28:06-04:00</updated>

		<published>2003-06-28T19:28:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22706#p22706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22706#p22706"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22706#p22706"><![CDATA[
hmmm that just dont seem to work<br><br>your line without the "if" gives me invalid command and without the last "]" it gives me missing bracket  in the console window<br><br>and when iv added them it does nothing, reguardless of whether chan is or isnt +S<br>the only way i can get action from the new line is by adding != 1 same place i added on my line, which seems to totally revoke the whole compare argument and leaves me exactly where i was before <br><br>it will either do nothing or it will not stop doing it.<br><br>i dont mind if i have to add a dummy command after ie putlog ""<br><br>and then use the else to go to my needed command<br><br>but iv tried this and also i get nowhere<br><br>really you should be able to place the != elsewere in the compare but it just dont work <br><br>sorry if i sound dumb but this is my 1st ever bash at tcl, apart from changing sum general settings in otherds scripts<p>Statistics: Posted by Guest — Sat Jun 28, 2003 7:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-28T12:11:02-04:00</updated>

		<published>2003-06-28T12:11:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22686#p22686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22686#p22686"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22686#p22686"><![CDATA[
replace:<div class="codebox"><p>Code: </p><pre><code>if {[string match "S" [lindex [getchanmode $chan] ] ] != 1} {</code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>{[string match "*S*" [getchanmode [strlwr $chan]]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jun 28, 2003 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-28T11:29:10-04:00</updated>

		<published>2003-06-28T11:29:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22682#p22682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22682#p22682"/>
		<title type="html"><![CDATA[aaargh banging my head on the wall simple chanmode change an]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22682#p22682"><![CDATA[
If i get this to do something then it dont stop lol im looking to check chanmode +S then  if it doesnt exist invoke it, if it does thern do nothing<br><br>some1 please point out what im not getting into my head<br><br>also cant understand why it insists on 3 timer enties<br><div class="codebox"><p>Code: </p><pre><code>set ssl_timer  60 set chan       "#xxx"#set cur_mode      "S"set new_mode      "+S"timer $ssl_timer ssl_onproc ssl_on {} {  global chan ssl_timer new_mode  timer $ssl_timer ssl_on    if {![botisop $chan]} {continue}    if {[string match "S" [lindex [getchanmode $chan] ] ] != 1} {    pushmode $chan $new_mode    flushmode $chan    putlog "SSL: set +S on $chan"    }}proc ssl_start {} {  global ssl_timer  timer $ssl_timer ssl_on}</code></pre></div><p>Statistics: Posted by Guest — Sat Jun 28, 2003 11:29 am</p><hr />
]]></content>
	</entry>
	</feed>
