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

	<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>2007-04-20T15:09:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-04-20T15:09:48-04:00</updated>

		<published>2007-04-20T15:09:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72157#p72157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72157#p72157"/>
		<title type="html"><![CDATA[Limit function request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72157#p72157"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#change this, since it should only be one argument anyway, no need for #lrange:set add_ban_limit [lindex $arg 3]if {(![string is integer -strict $add_ban_limit]) || ($add_ban_limit &gt; 180)} {puthelp "PRIVMSG $nick :Ban time must be an integer and cannot be longer than 180 minutes";return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Apr 20, 2007 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-04-20T14:12:17-04:00</updated>

		<published>2007-04-20T14:12:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72156#p72156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72156#p72156"/>
		<title type="html"><![CDATA[Limit function request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72156#p72156"><![CDATA[
Hello,<br><br><a href="http://forum.egghelp.org/viewtopic.php?p=72099#72099" class="postlink">this</a> is my actual thread and I cant continue there cause I dont know how to do something.<br><br>In my code at the bottom I need a limit. In the variable add_ban_length I need a simple limit. Everybody can add a ban only with a maximum of 180 minutes. That means you are able to add a ban into the database but not longer than the variable 180, how to do this?<br><div class="codebox"><p>Code: </p><pre><code>#######################################   ############## Add Ban ################   #######################################      proc ban:db:addban {nick host hand chan arg} {                  global sql               set add_player_id [lindex $arg 0]               set add_player_nick [lindex $arg 1]               set add_admin_id [nick2hand $nick]               set add_ban_reason [lindex $arg 2]               set add_ban_time [unixtime]               set add_ban_length [lrange $arg 3 end]               set sql(handle) [mysqlconnect -host $sql(host2) -user $sql(user2) -password $sql(pass2) -db $sql(db2)]               set sma(qry) [mysqlsel $sql(handle) "INSERT INTO amx_bans(player_ip,player_id,player_nick,admin_ip,admin_id,admin_nick,ban_type,ban_reason,ban_created,ban_length,server_ip,server_name) VALUES('0.0.0.0','$add_player_id','$add_player_nick','$host','$add_admin_id','$nick','S','$add_ban_reason','$add_ban_time','$add_ban_length','$chan','IRC');"]               mysqlclose $sql(handle)            putserv "NOTICE $nick :Done."         } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Fri Apr 20, 2007 2:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
