diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/API_CHANGE b/SmartIrc4net/SmartIrc4net-0.4.5.1/API_CHANGE new file mode 100644 index 0000000..fb0d506 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/API_CHANGE @@ -0,0 +1,78 @@ +/** + * $Id: CHANGELOG 108 2004-11-07 21:04:42Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/CHANGELOG $ + * $Rev: 108 $ + * $Author: meebey $ + * $Date: 2004-11-07 22:04:42 +0100 (Sun, 07 Nov 2004) $ + */ + +API Change (0.2.0 -> 0.3.0) Documentation +----------------------------------------- +This file is only relevent for you if you wrote an IRC application that is +SmartIrc4net 0.2.0 based! If you didn't use SmartIrc4net yet, you can safely +ignore this file and just continue on hacking a great IRC application ;) + +The API naming between SmartIrc4net 0.2.0 and 0.3.0 changed a lot, mostly +because of .NET library standards. + +Here are the changes: +- All RFC commands in IrcCommands are now prefixed with "Rfc" + + If you used the Join() method, then you need to change your calls to + RfcJoin(). The reason is for this change is that the most commands are plain + RFC wrapper methods. This way you can easily distinguish between API + commands/feature and plain RFC commands. Another reason was conflicts or + confusing names like Admin(), Version() or Ison(). + + Message() got renamed to SendMessage() which makes more clear what that + method actually does. + +- All delegates now uses .NET standards conform signatures + + If you used JoinEventHandler which was: + JoinEventHandler(string channel, string who, Data ircdata) + + it's now: + JoinEventHandler(object sender, JoinEventArgs e); + + This way the .NET library standards suggest, because those JoinEventArgs + which extends IrcEventArgs which extends EventArgs can be easily changed at + any time later for additional data. + The "sender" argument is type IrcClient, the irc client object that triggered + the event (very useful for multiple irc connections). + IrcEventArgs always contain the property "Data" + (type IrcMessageData, formerly known as type Data) + + This means you have to change all your event method signatures, e.g.: + + If you had an event method for OnJoin it was like this: + MyOnJoinMethod(string channel, string who, Data ircdata) { + System.Console.WriteLine(who+" joined on "+channel+"!"); + } + + you need to change that to: + MyOnJoinMethod(object sender, JoinEventArgs e) { + System.Console.WriteLine(e.Who+" joined on "+e.Channel+"!"); + } + + you still have the whole parsed IRC message in e.Data! + +- Connect() Disconnect() Reconnect() don't return bool anymore + + They use now proper exception handling, so catch them! + There is ConnectionException which work for all 3 methods, and also more + specific exception types like: + CouldNotConnectException + AlreadyConnectedException + NotConnectionException + + There is also a very general exception type which will catch ANY exception + that SmartIrc4net will throw! It's called: + SmartIrc4netException + +- ChannelSync property is renamed to ActiveChannelSync + (read more about in the CHANGELOG) + +- Any method that will send a message can throw an exception! + If the IRC library is not connected and you try to send any message, then + a NotConnectedException will be thrown! diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/CHANGELOG b/SmartIrc4net/SmartIrc4net-0.4.5.1/CHANGELOG new file mode 100644 index 0000000..6fee167 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/CHANGELOG @@ -0,0 +1,189 @@ +/** + * $Id: CHANGELOG 267 2007-04-06 17:02:22Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/CHANGELOG $ + * $Rev: 267 $ + * $Author: meebey $ + * $Date: 2007-04-06 19:02:22 +0200 (Fri, 06 Apr 2007) $ + */ + +v0.4.0 (SVN r266) +------ +fixes: +- fixed null reference exception when CTCP PING contains no data + (thanks to Nick 'Zaf' Clifford, closes sf.net patch #1199630) +- fixed NonRfcSupport, it didn't check for NonRfcSupport in _Event_RPL_NAMREPLY + (thanks to the anonymous poster on the sf.net forum for reporting this) +- added sanity checks to the mode change parser in IrcClient._InterpretChannelMode(), + otherwise some nasty IRCd servers might break us. +- catch ObjectDisposedExceptions in connection handling code. + +new: +- IrcConnection now uses an active pinger to better detect network problems, + by default every 60 seconds a ping will be send to the server, if it + doesn't respond the class will disconnect or reconnect depending on + the IrcConnection.AutoReconnect property. +- added IrcConnection.OnAutoConnectError event, raised when there is a problem + with the connection, it passes in AutoConnectErrorEventArgs which server and port + was used and which exception was thrown, this way application can display and + handle connection errors. +- reconnect handling will now store/use keys if ActiveChannelSyncing and + AutoRejoin is activated. +- UTF-8 support + now you can set IrcConnection.Encoding = Encoding.UTF8 and all messages send + and receives will be encoded/decoded to/from UTF-8 +- added lots of documentation stabs +- added IrcClient.IsAway property. +- added IrcClient.OnAway, IrcClient.OnAway, IrcClient.OnUnAway and IrcClient.OnNowAway events. +- added IrcClient.OnPong event. +- added IrcClient.AutoJoinOnInvite property, if enabled and the class receives an + invite it will join that channel automatic (don't worry it will not join "0"). +- added IrcClient.AutoRejoinOnKick property, if enabled and the class was in a + channel and got kicked, it will try to rejoin that channel. +- added IrcClient.AutoNickHandling property, now you can deactivate the + automatic nick change when a nick collision happens, so you can handle + it on your application instead. +- added IrcCLient.NicknameList property, set in Login() call, will try the + different nicks when the nick was already used, in order. +- added IrcClient.Login() overload for passing a nickname list. +- added some documentation. +- added IrcConnection.Lag property, indicates how much lag is between the + IRCd server and the IRC client. +- added VisualStudio 2005 project files. + +changes: +- IrcConnection.Encoding now uses the system encoding as default! + So you might have to set it to Encoding.GetEncoding("ISO-8859-1") manually. +- IrcClient.Reconnect() now stores channel keys too for rejoining them. +- IrcClient.OnCtcpRequest and IrcClient.OnCtcpReply events now passes parsed + CTCP data as CtcpEventArgs. +- Removed log4net initialization, as this can conflict with applications using log4net. + If you need debug output, use the debug build and add this code to your application: + log4net.Config.BasicConfigurator.Configure(); + or if you want the old config style with a config file: + FileInfo fi = new FileInfo("SmartIrc4net_log.config"); + log4net.Config.DOMConfigurator.ConfigureAndWatch(fi); +- When IrcClient.CtcpVersion is set, the library will no longer advertise + itself in CTCP VERSION replies. + +v0.3.5 (SVN r184) +------ +fixes: +- fixed bug in channel sync that caused duplicate exception + (Closes sf.net bug #1064190) +- fixed tracking of ops and voices list on join + (thanks to Clément Bourgeois, closes sf.net bug #1075942) +- fixed bug that the initial channel mode is not synced (on join). +- fixed a crash bug in the channel sync code + when a user was voiced/opped/banned 2 times, an ArgumentException was thrown + (thanks to Clément Bourgeois for spotting this) +- fixed handling of a stalled connection + IOException was not catched in the write thread, and in the read thread + the IsConnectionError was not set +- fixed InviteEventArgs, mixed who with channel name +- fixed OnConnected event + now it's raised when the connection is ready for sending data. +- fixed Reconnect() handling in the Listen() loop, moved to ReadLine(). +- fixed InviteEventArgs.Channel property, + initialized with the right value now. +- fixed nullref exception in _Event_QUIT() + added sanity checks, FreshIRC network does very ugly things with the IRC + protocol. + +changes: +- improved handling of rejoining channels after reconnect. +- using keep-alive socket now. +- removed underscores in parameter names (violates .NET library standards) +- renamed parameters with "text" to different names + (violates .NET library standards) +- using new case-insensitive hashtables (FxCop spotted this) +- improved the example/test program +- main bin/ directory is now used for the example programs +- changed overrides to new (method hiding is sufficient here). +- updated all MS VS.NET project files. + +new: +- added Halfop support (with OnHalfop and OnDehalfop events) + if you want to use it do: + irc.NonRfcSupport = true; + NonRfcChannel nchan = GetChannel("#channel"); + nchan.Halfops.... + or + NonRfcChannelUser nuser = GetChannelUser("#channel", "nick"); + nuser.Halfop..... +- added Halfop() and Dehalfop() command to IrcCommands +- added OnErrorMessage event as general hook for all ERR_ messages +- added SendReply(), easy way of replying to a message + (regardless if its a channel, query or notice message) +- added OnMotd event (with MotdEventArgs) +- added IrcClient.Motd property +- added OnChannelPassiveSynced event +- added channel sync timings to channels (Channel.ActiveSyncTime). +- added IrcClient.AutoRelogin setting. +- added IrcConnection.AutoRetryDelay property. +- added IrcConnection.OnConnectionError event. +- added Rfc2812.IsValidNickname() method. +- added IrcConnection.SocketSendTimeout and IrcConnection.SocketReceiveTimeout +- added little benchmark program (examples/benchmark). +- added stresstest program (examples/stresstest). +- added sign target to the makefile + +v0.3.0 (SVN r123) +------- +fixes: +- fine tuned the "#ifdef LOG4NET" statements (thanks to prencher for noticing this + log4net is fully optional! (only required for debugging the library) +- fixed bug, the class changed the Op and Voice list of a copy *boing* + (FxCop pointed me to it) +- added check for "~" userflag on nameslist (thanks to Giacomo Di Ciocco) + this broke the library on IRC networks using that userflag on channels +- fixed channel sync bug, when the connection is re-established + (Closes sf.net bug #1043536) +- fixed rejoining channels when using Reconnect() +- added sanity checks in _Event_WHOREPLY() + this will prevent exceptions when the IRC server voilates the RFC + (like some psybnc version do) +- fixed string handling in _Event_PRIVMSG() for CTCP messages + (Closes sf.net bug #1039286) + +changes: +- making SmartIrc4net CLS and .NET standards conform + changed all delegates to use EventArgs +- made a few constructors "internal" +- directory struture changed + the structure now represents the API layers + (IrcConnection, IrcCommands and IrcClient) +- regex optimizations (thanks to prencher for the hints) +- renamed all ReplyCodes to conform to .NET standards + (e.g. ReyplCode.RPL_Welcome -> ReplyCode.Welcome) +- renamed IrcConnection.Version to IrcConnection.VersionNumber +- renamed ChannelSync to ActiveChannelSync + later I will introduce PassiveChannelSync, this means only the received + data is used for channel sync no extra commands are send to the IRC server. + +new: +- parts of SmartIrc4net have now XML documentation tags +- added *EventArgs for the events +- added exception handling for Connect() Reconnect() Disconnect() +- added VisualStudio project files (thanks to prencher for creating them) +- added constructors to the exception classes (.NET standards) +- added log calls for queue, when data could not be sent and is requeued +- added missing overloads for RFC commands (Closes sf.net bug #1061503) + (Join, Part, Kick, List, Names) +- added more RFC commands, now all RFC 2812 commands are implemented! + (Oper, Motd, Luser, Version, Stats, Service, Squit, Links, Time, Connect, + Trace, Admin, Info, Servlist, Squery, Whois, Whowas, Kill, Ping, Pong, + Away, Rehash, Die, Restart, Summon, Users, Wallops, Userhost, Ison) +- WriteLine() will throw an NotConnectedException now when it's used without + having a connection to an IRC server +- added timeout values for the tcp socket (6 minutes), and activated nodelay flag +- prefixed all IrcCommands that are actually plain RFC commands with "Rfc" + e.g. Join() is now called RfcJoin() + +v0.2.0 (SVN r83) +------- +fixes: + +changes: + +new: + - first public release diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/CREDITS b/SmartIrc4net/SmartIrc4net-0.4.5.1/CREDITS new file mode 100644 index 0000000..be45d4c --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/CREDITS @@ -0,0 +1,35 @@ +/** + * $Id: CREDITS 203 2005-06-10 01:42:42Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/CREDITS $ + * $Rev: 203 $ + * $Author: meebey $ + * $Date: 2005-06-10 03:42:42 +0200 (Fri, 10 Jun 2005) $ + */ + +This is the creditslist for SmartIrc4net + +The fields are: +(N) name +(E) email +(W) web-address +(P) PGP key ID and fingerprint +(D) description +(S) snail-mail address +--------------------------- + +N: Mirco Bauer +E: meebey@meebey.net +E: meebey@php.net +W: www.meebey.net +P: EEF946C8 / ABE1 95E1 50A8 DBE7 809D 3F42 7127 E5AB EEF9 46C8 +D: Project Leader +S: Kroonhorst 42 +S: 22549 Hamburg +S: Germany + +N: Benjamin Hall +E: Benjamin.Hall@orcon.net.nz +D: Several patches: AutoRejoinOnKick, AutoJoinOnInvite, NicknameList, + IdleWorkerThread, OnAutoConnectError, Lag, documentation +S: Auckland +S: New Zealand diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/FEATURES b/SmartIrc4net/SmartIrc4net-0.4.5.1/FEATURES new file mode 100644 index 0000000..46fb1a6 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/FEATURES @@ -0,0 +1,34 @@ +/** + * $Id: FEATURES 141 2004-11-30 20:05:26Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/FEATURES $ + * $Rev: 141 $ + * $Author: meebey $ + * $Date: 2004-11-30 21:05:26 +0100 (Tue, 30 Nov 2004) $ + */ + +Full featurelist of SmartIrc4net +------------------------------------- + +- 3 layered API + - IrcConnection (low-level API) + contains socket handling and message buffer + - IrcCommands (extends IrcConnection, middle-level API) + contains RFC IRC commands plus easy to use IRC methods (like Op/Deop/Ban/Unban...) + - IrcClient (extends IrcCommands, high-level API) + full featured IRC class, with channel syncing, fully event driven +- send/receive floodprotection +- detects and changes nickname on nickname collisions +- autoreconnect, if connection is lost +- autoretry for connecting to IRC servers +- debugging/logging system with log levels (using log4net) +- compatible with Mono and Micrsoft .NET Framework +- sendbuffer with a queue that has 3 priority levels (high, medium, low) plus a bypass level (critical) +- channel syncing (tracking of users/modes/topic etc in objects) +- user syncing (tracking the user in channels, nick/ident/host/realname/server/hopcount in objects) +- when channel syncing is acticated the following methods are available: + - IsJoined + - IsOpped + - IsVoiced + - IsBanned +- on reconnect all joined channels will be rejoined, also when keys are used +- own CTCP version reply can be set diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/LICENSE b/SmartIrc4net/SmartIrc4net-0.4.5.1/LICENSE new file mode 100644 index 0000000..2cc0d95 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/LICENSE @@ -0,0 +1,509 @@ +/** + * $Id: LICENSE 78 2004-09-19 13:33:02Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/LICENSE $ + * $Rev: 78 $ + * $Author: meebey $ + * $Date: 2004-09-19 15:33:02 +0200 (Sun, 19 Sep 2004) $ + */ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/Makefile.am b/SmartIrc4net/SmartIrc4net-0.4.5.1/Makefile.am new file mode 100644 index 0000000..38b4433 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/Makefile.am @@ -0,0 +1,14 @@ +SUBDIRS = \ + src + +EXTRA_DIST = \ + $(PACKAGE_NAME).snk \ + SmartIrc4net.mds \ + SmartIrc4net.mdp \ + API_CHANGE \ + CHANGELOG \ + CREDITS \ + FEATURES \ + LICENSE \ + README \ + TODO diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/Makefile.in b/SmartIrc4net/SmartIrc4net-0.4.5.1/Makefile.in new file mode 100644 index 0000000..2489820 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/Makefile.in @@ -0,0 +1,595 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = . +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/smartirc4net.pc.in \ + $(top_srcdir)/configure TODO install-sh missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/expansions.m4 \ + $(top_srcdir)/mono.m4 $(top_srcdir)/programs.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = smartirc4net.pc +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +ASSEMBLY_DESCRIPTION = @ASSEMBLY_DESCRIPTION@ +ASSEMBLY_NAME = @ASSEMBLY_NAME@ +ASSEMBLY_TITLE = @ASSEMBLY_TITLE@ +ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CLR = @CLR@ +CSC = @CSC@ +CSC_FLAGS = @CSC_FLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +GACUTIL = @GACUTIL@ +GACUTIL_FLAGS = @GACUTIL_FLAGS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MCS = @MCS@ +MKDIR_P = @MKDIR_P@ +MONO = @MONO@ +MONO_MODULE_CFLAGS = @MONO_MODULE_CFLAGS@ +MONO_MODULE_LIBS = @MONO_MODULE_LIBS@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +expanded_libdir = @expanded_libdir@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = \ + src + +EXTRA_DIST = \ + $(PACKAGE_NAME).snk \ + SmartIrc4net.mds \ + SmartIrc4net.mdp \ + API_CHANGE \ + CHANGELOG \ + CREDITS \ + FEATURES \ + LICENSE \ + README \ + TODO + +all: all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ + cd $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +smartirc4net.pc: $(top_builddir)/config.status $(srcdir)/smartirc4net.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d $(distdir) || mkdir $(distdir) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-exec-am: + +install-html: install-html-recursive + +install-info: install-info-recursive + +install-man: + +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ + install-strip + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \ + distclean-generic distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ + tags-recursive uninstall uninstall-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/Meebey.SmartIrc4net.xml b/SmartIrc4net/SmartIrc4net-0.4.5.1/Meebey.SmartIrc4net.xml new file mode 100644 index 0000000..4ca3b61 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/Meebey.SmartIrc4net.xml @@ -0,0 +1,2836 @@ + + + + Meebey.SmartIrc4net + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This class manages the information of a user within a channel. + + + only used with channel sync + + + + + + + + + + + + + Gets the channel name + + + + + Gets the server operator status of the user + + + + + Gets or sets the op flag of the user (+o) + + + only used with channel sync + + + + + Gets or sets the voice flag of the user (+v) + + + only used with channel sync + + + + + Gets the away status of the user + + + + + Gets the underlaying IrcUser object + + + + + Gets the nickname of the user + + + + + Gets the identity (username) of the user, which is used by some IRC networks for authentication. + + + + + Gets the hostname of the user, + + + + + Gets the supposed real name of the user. + + + + + Gets the server the user is connected to. + + + + + + Gets or sets the count of hops between you and the user's server + + + + + Gets the list of channels the user has joined + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This layer is an event driven high-level API with all features you could need for IRC programming. + + + + + + + + + + + + + + + + + + Initializes the message queues, read and write thread + + + + this method has 2 overloads + + Connects to the specified server and port, when the connection fails + the next server in the list will be used. + + List of servers to connect to + Portnumber to connect to + The connection failed + If there is already an active connection + + + + Connects to the specified server and port. + + Server address to connect to + Port number to connect to + + + + Reconnects to the server + + + If there was no active connection + + + The connection failed + + + If there is already an active connection + + + + + Disconnects from the server + + + If there was no active connection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Raised when a \r\n terminated line is read from the socket + + + + + Raised when a \r\n terminated line is written to the socket + + + + + Raised before the connect attempt + + + + + Raised on successful connect + + + + + Raised before the connection is closed + + + + + Raised when the connection is closed + + + + + Raised when the connection got into an error state + + + + + Raised when the connection got into an error state during auto connect loop + + + + + When a connection error is detected this property will return true + + + + + Gets the current address of the connection + + + + + Gets the address list of the connection + + + + + Gets the used port of the connection + + + + + By default nothing is done when the library looses the connection + to the server. + Default: false + + + true, if the library should reconnect on lost connections + false, if the library should not take care of it + + + + + If the library should retry to connect when the connection fails. + Default: false + + + true, if the library should retry to connect + false, if the library should not retry + + + + + Delay between retry attempts in Connect() in seconds. + Default: 30 + + + + + To prevent flooding the IRC server, it's required to delay each + message, given in milliseconds. + Default: 200 + + + + + On successful registration on the IRC network, this is set to true. + + + + + On successful connect to the IRC server, this is set to true. + + + + + Gets the SmartIrc4net version number + + + + + Gets the full SmartIrc4net version string + + + + + Encoding which is used for reading and writing to the socket + Default: encoding of the system + + + + + Enables/disables using SSL for the connection + Default: false + + + + + Timeout in seconds for receiving data from the socket + Default: 600 + + + + + Timeout in seconds for sending data to the socket + Default: 600 + + + + + Interval in seconds to run the idle worker + Default: 60 + + + + + Interval in seconds to send a PING + Default: 60 + + + + + Timeout in seconds for server response to a PING + Default: 600 + + + + + Latency between client and the server + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This class manages the connection server and provides access to all the objects needed to send and receive messages. + + + + + Connection parameters required to establish an server connection. + + The list of server hostnames. + The TCP port the server listens on. + + + + Reconnects to the current server. + + If the login data should be sent, after successful connect. + If the channels should be rejoined, after successful connect. + + + If the login data should be sent, after successful connect. + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users list of 'nick' names which may NOT contain spaces + The users 'real' name which may contain space characters + A numeric mode parameter. + + Set to 0 to recieve wallops and be invisible. + Set to 4 to be invisible and not receive wallops. + + + The user's machine logon name + The optional password can and MUST be set before any attempt to register + the connection is made. + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users list of 'nick' names which may NOT contain spaces + The users 'real' name which may contain space characters + A numeric mode parameter. + Set to 0 to recieve wallops and be invisible. + Set to 4 to be invisible and not receive wallops. + The user's machine logon name + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users list of 'nick' names which may NOT contain spaces + The users 'real' name which may contain space characters + A numeric mode parameter. + Set to 0 to recieve wallops and be invisible. + Set to 4 to be invisible and not receive wallops. + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users list of 'nick' names which may NOT contain spaces + The users 'real' name which may contain space characters + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users 'nick' name which may NOT contain spaces + The users 'real' name which may contain space characters + A numeric mode parameter. + Set to 0 to recieve wallops and be invisible. + Set to 4 to be invisible and not receive wallops. + The user's machine logon name + The optional password can and MUST be set before any attempt to register + the connection is made. + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users 'nick' name which may NOT contain spaces + The users 'real' name which may contain space characters + A numeric mode parameter. + Set to 0 to recieve wallops and be invisible. + Set to 4 to be invisible and not receive wallops. + The user's machine logon name + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users 'nick' name which may NOT contain spaces + The users 'real' name which may contain space characters + A numeric mode parameter. + Set to 0 to recieve wallops and be invisible. + Set to 4 to be invisible and not receive wallops. + + + + Login parameters required identify with server connection + + Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + The users 'nick' name which may NOT contain spaces + The users 'real' name which may contain space characters + + + + Determine if a specifier nickname is you + + The users 'nick' name which may NOT contain spaces + True if nickname belongs to you + + + + Determines if your nickname can be found in a specified channel + + The name of the channel you wish to query + True if you are found in channel + + + + Determine if a specified nickname can be found in a specified channel + + The name of the channel you wish to query + The users 'nick' name which may NOT contain spaces + True if nickname is found in channel + + + + Returns user information + + The users 'nick' name which may NOT contain spaces + IrcUser object of requested nickname + + + + Returns extended user information including channel information + + The name of the channel you wish to query + The users 'nick' name which may NOT contain spaces + ChannelUser object of requested channelname/nickname + + + + + + The name of the channel you wish to query + Channel object of requested channel + + + + Gets a list of all joined channels on server + + String array of all joined channel names + + + + Fetches a fresh list of all available channels that match the passed mask + + List of ListInfo + + + + Fetches a fresh list of users that matches the passed mask + + List of ListInfo + + + + Fetches a fresh ban list of the specified channel + + List of ListInfo + + + + + + + + + Removes a specified user from all channel lists + + The users 'nick' name which may NOT contain spaces + + + + Removes a specified user from a specified channel list + + The name of the channel you wish to query + The users 'nick' name which may NOT contain spaces + + + + + + Message data containing channel mode information + Channel mode + List of supplied paramaters + + + + Event handler for ping messages + + Message data containing ping information + + + + Event handler for PONG messages + + Message data containing pong information + + + + Event handler for error messages + + Message data containing error information + + + + Event handler for join messages + + Message data containing join information + + + + Event handler for part messages + + Message data containing part information + + + + Event handler for kick messages + + Message data containing kick information + + + + Event handler for quit messages + + Message data containing quit information + + + + Event handler for private messages + + Message data containing private message information + + + + Event handler for notice messages + + Message data containing notice information + + + + Event handler for topic messages + + Message data containing topic information + + + + Event handler for nickname messages + + Message data containing nickname information + + + + Event handler for invite messages + + Message data containing invite information + + + + Event handler for mode messages + + Message data containing mode information + + + + Event handler for channel mode reply messages + + Message data containing reply information + + + + Event handler for welcome reply messages + + + Upon success, the client will receive an RPL_WELCOME (for users) or + RPL_YOURESERVICE (for services) message indicating that the + connection is now registered and known the to the entire IRC network. + The reply message MUST contain the full client identifier upon which + it was registered. + + Message data containing reply information + + + + Enables/disables the active channel sync feature. + Default: false + + + + + Enables/disables the passive channel sync feature. Not implemented yet! + + + + + Sets the ctcp version that should be replied on ctcp version request. + + + + + Enables/disables auto joining of channels when invited. + Default: false + + + + + Enables/disables automatic rejoining of channels when a connection to the server is lost. + Default: false + + + + + Enables/disables auto rejoining of channels when kicked. + Default: false + + + + + Enables/disables auto relogin to the server after a reconnect. + Default: false + + + + + Enables/disables auto nick handling on nick collisions + Default: true + + + + + Enables/disables support for non rfc features. + Default: false + + + + + Gets the nickname of us. + + + + + Gets the list of nicknames of us. + + + + + Gets the supposed real name of us. + + + + + Gets the username for the server. + + + System username is set by default + + + + + Gets the alphanumeric mode mask of us. + + + + + Gets the numeric mode mask of us. + + + + + Returns if we are away on this connection + + + + + Gets the password for the server. + + + + + Gets the list of channels we are joined. + + + + + Gets the server message of the day. + + + + + This class contains an IRC message in a parsed form + + + + + + Constructor to create an instace of IrcMessageData + + IrcClient the message originated from + combined nickname, identity and host of the user that sent the message (nick!ident@host) + nickname of the user that sent the message + identity (username) of the userthat sent the message + hostname of the user that sent the message + channel the message originated from + message + raw message sent by the server + message type + message reply code + + + + Gets the IrcClient object the message originated from + + + + + Gets the combined nickname, identity and hostname of the user that sent the message + + + nick!ident@host + + + + + Gets the nickname of the user that sent the message + + + + + Gets the identity (username) of the user that sent the message + + + + + Gets the hostname of the user that sent the message + + + + + Gets the channel the message originated from + + + + + Gets the message + + + + + Gets the message as an array of strings (splitted by space) + + + + + Gets the raw message sent by the server + + + + + Gets the raw message sent by the server as array of strings (splitted by space) + + + + + Gets the message type + + + + + Gets the message reply code + + + + + This class manages the user information. + + + only used with channel sync + + IrcClient.ActiveChannelSyncing + + + + + + + Gets or sets the nickname of the user. + + + Do _not_ set this value, it will break channel sync! + + + + + Gets or sets the identity (username) of the user which is used by some IRC networks for authentication. + + + Do _not_ set this value, it will break channel sync! + + + + + Gets or sets the hostname of the user. + + + Do _not_ set this value, it will break channel sync! + + + + + Gets or sets the supposed real name of the user. + + + Do _not_ set this value, it will break channel sync! + + + + + Gets or sets the server operator status of the user + + + Do _not_ set this value, it will break channel sync! + + + + + Gets or sets away status of the user + + + Do _not_ set this value, it will break channel sync! + + + + + Gets or sets the server the user is connected to + + + Do _not_ set this value, it will break channel sync! + + + + + Gets or sets the count of hops between you and the user's server + + + Do _not_ set this value, it will break channel sync! + + + + + Gets the list of channels the user has joined + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Checks if the passed nickname is valid according to the RFC + + Use with caution, many IRC servers are not conform with this! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/README b/SmartIrc4net/SmartIrc4net-0.4.5.1/README new file mode 100644 index 0000000..a414c23 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/README @@ -0,0 +1,55 @@ +/** + * $Id: README 141 2004-11-30 20:05:26Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/README $ + * $Rev: 141 $ + * $Author: meebey $ + * $Date: 2004-11-30 21:05:26 +0100 (Tue, 30 Nov 2004) $ + */ + +SmartIrc4net +---------------- +What is this? +SmartIrc4net is a C# class for communication with IRC networks, which +conforms to the RFC 2812 (IRC Protocol). +It's orignally a port of SmartIRC (written in PHP), +but it's much more now (I will backport it to PHP5 some day). +SmartIrc4net an API that handles all IRC protocol messages and is designed for +creating IRC bots or even GUI clients. + +Please report bugs to: +http://sourceforge.net/tracker/?group_id=114302&atid=667874 + +Project Homepage: +http://smartirc4net.sf.net + +files included in SmartIrc4net +-------------------------- +FEATURES +A full list of features that SmartIrc4net includes + +CHANGELOG +Listing of changes between all versions. + +README +This file + +LICENSE +The license of SmartIrc4net. + +CREDITS +Creditlist with people that work/help on SmartIrc4net. + +src/*.cs +The SmartIrc4net sourcecode + +examples/ +Some examples how SmartIrc4net can be used. + +docs/ +Documentation of SmartIrc4net. + +CSharpBuilder/ +Project files for Borlands C# Builder. + +MonoDevelop/ +Project files for MonoDevelop. diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.csproj b/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.csproj new file mode 100644 index 0000000..4e03423 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.csproj @@ -0,0 +1,154 @@ + + + + Local + 8.0.50727 + 2.0 + {19607F57-B521-4477-9DE0-F0D9B1A68BC7} + Debug + AnyCPU + + + + + Meebey.SmartIrc4net + + + JScript + Grid + IE50 + false + Library + SmartIrc4net + OnBuildSuccess + + + + + + + v2.0 + 2.0 + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + ..\..\bin\debug\ + false + 285212672 + false + + + TRACE;DEBUG;NET_2_0 + Meebey.SmartIrc4net.xml + true + 4096 + false + + + false + false + false + false + 0 + full + prompt + AllRules.ruleset + + + ..\..\bin\release\ + false + 285212672 + true + + + + + Meebey.SmartIrc4net.xml + false + 4096 + false + + + true + false + false + false + 4 + none + prompt + AllRules.ruleset + + + + False + ..\..\bin\log4net.dll + + + System + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + true + + + False + Windows Installer 3.1 + true + + + + + + + + + + \ No newline at end of file diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.mdp b/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.mdp new file mode 100644 index 0000000..43336ae --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.mdp @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.mds b/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.mds new file mode 100644 index 0000000..713b672 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/SmartIrc4net.mds @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/TODO b/SmartIrc4net/SmartIrc4net-0.4.5.1/TODO new file mode 100644 index 0000000..fb2f0f4 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/TODO @@ -0,0 +1,24 @@ +/** + * $Id: TODO 283 2008-07-18 15:06:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/TODO $ + * $Rev: 283 $ + * $Author: meebey $ + * $Date: 2008-07-18 17:06:11 +0200 (Fri, 18 Jul 2008) $ + */ + +08:09:48 btw, I forgot to mention, but the channel modes +q and +a are for Owner (~) and Admin (&) respectively. +- IrcClient.AutoAwaySync, query every minute WHO of joined channels to keep away synced +- Reconnect() / StoreRejoinChannels() should remember channel keys too! +- add IrcNetwork property, which is guessed by default or passed with Connect() +- Documentation +- passive channel sync +- AutoNickChange +- clean message parser, channel is not always right set (need to check for replycode!) +- DCC chat, file send/receive +- ipv6 support? +- add IrcConnection.HostAddress (which IP is used for the client) +- add OnSocketTimeout event +- add server properties to IrcConnection (required for smart mode changes etc) +- Exception Error Handling (argument checking) +- Use async sockets? +- Create Debian Package diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/aclocal.m4 b/SmartIrc4net/SmartIrc4net-0.4.5.1/aclocal.m4 new file mode 100644 index 0000000..1cec539 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/aclocal.m4 @@ -0,0 +1,779 @@ +# generated automatically by aclocal 1.10.1 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(AC_AUTOCONF_VERSION, [2.61],, +[m4_warning([this file was generated for autoconf 2.61. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# +# Copyright © 2004 Scott James Remnant . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +# ---------------------------------- +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi + +fi[]dnl +])# PKG_PROG_PKG_CONFIG + +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +# +# Check to see whether a particular set of modules exists. Similar +# to PKG_CHECK_MODULES(), but does not set variables or print errors. +# +# +# Similar to PKG_CHECK_MODULES, make sure that the first instance of +# this or PKG_CHECK_MODULES is called, or make sure to call +# PKG_CHECK_EXISTS manually +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_EXISTS], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_ifval([$2], [$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + + +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +# --------------------------------------------- +m4_define([_PKG_CONFIG], +[if test -n "$PKG_CONFIG"; then + if test -n "$$1"; then + pkg_cv_[]$1="$$1" + else + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], + [pkg_failed=yes]) + fi +else + pkg_failed=untried +fi[]dnl +])# _PKG_CONFIG + +# _PKG_SHORT_ERRORS_SUPPORTED +# ----------------------------- +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +])# _PKG_SHORT_ERRORS_SUPPORTED + + +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# +# +# Note that if there is a possibility the first call to +# PKG_CHECK_MODULES might not happen, you should be sure to include an +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +# +# +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_MODULES], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + ifelse([$4], , [AC_MSG_ERROR(dnl +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT +])], + [AC_MSG_RESULT([no]) + $4]) +elif test $pkg_failed = untried; then + ifelse([$4], , [AC_MSG_FAILURE(dnl +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])], + [$4]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + ifelse([$3], , :, [$3]) +fi[]dnl +])# PKG_CHECK_MODULES + +# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.10' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.10.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.10.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 13 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.60])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +AC_DEFUN([AM_MAINTAINER_MODE], +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode is disabled by default + AC_ARG_ENABLE(maintainer-mode, +[ --enable-maintainer-mode enable make rules and dependencies not useful + (and sometimes confusing) to the casual installer], + USE_MAINTAINER_MODE=$enableval, + USE_MAINTAINER_MODE=no) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST(MAINT)dnl +] +) + +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([expansions.m4]) +m4_include([mono.m4]) +m4_include([programs.m4]) diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/configure b/SmartIrc4net/SmartIrc4net-0.4.5.1/configure new file mode 100644 index 0000000..0974043 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/configure @@ -0,0 +1,3782 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.61 for smartirc4net 0.4.5.1. +# +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + + + +# PATH needs CR +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +as_nl=' +' +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + { (exit 1); exit 1; } +fi + +# Work around bugs in pre-3.0 UWIN ksh. +for as_var in ENV MAIL MAILPATH +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# CDPATH. +$as_unset CDPATH + + +if test "x$CONFIG_SHELL" = x; then + if (eval ":") 2>/dev/null; then + as_have_required=yes +else + as_have_required=no +fi + + if test $as_have_required = yes && (eval ": +(as_func_return () { + (exit \$1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test \$exitcode = 0) || { (exit 1); exit 1; } + +( + as_lineno_1=\$LINENO + as_lineno_2=\$LINENO + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } +") 2> /dev/null; then + : +else + as_candidate_shells= + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + case $as_dir in + /*) + for as_base in sh bash ksh sh5; do + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + done;; + esac +done +IFS=$as_save_IFS + + + for as_shell in $as_candidate_shells $SHELL; do + # Try only shells that exist, to save several forks. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { ("$as_shell") 2> /dev/null <<\_ASEOF +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + +: +_ASEOF +}; then + CONFIG_SHELL=$as_shell + as_have_required=yes + if { "$as_shell" 2> /dev/null <<\_ASEOF +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + +: +(as_func_return () { + (exit $1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = "$1" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test $exitcode = 0) || { (exit 1); exit 1; } + +( + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } + +_ASEOF +}; then + break +fi + +fi + + done + + if test "x$CONFIG_SHELL" != x; then + for as_var in BASH_ENV ENV + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + done + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + + if test $as_have_required = no; then + echo This script requires a shell more modern than all the + echo shells that I found on your system. Please install a + echo modern shell, or manually run the script under such a + echo shell if you do have one. + { (exit 1); exit 1; } +fi + + +fi + +fi + + + +(eval "as_func_return () { + (exit \$1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test \$exitcode = 0") || { + echo No shell found that supports shell functions. + echo Please tell autoconf@gnu.org about your system, + echo including any error possibly output before this + echo message +} + + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line after each line using $LINENO; the second 'sed' + # does the real work. The second script uses 'N' to pair each + # line-number line with the line containing $LINENO, and appends + # trailing '-' during substitution so that $LINENO is not a special + # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # scripts with optimization help from Paolo Bonzini. Blame Lee + # E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir +fi +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + + +exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Identity of this package. +PACKAGE_NAME='smartirc4net' +PACKAGE_TARNAME='smartirc4net' +PACKAGE_VERSION='0.4.5.1' +PACKAGE_STRING='smartirc4net 0.4.5.1' +PACKAGE_BUGREPORT='' + +ac_subst_vars='SHELL +PATH_SEPARATOR +PACKAGE_NAME +PACKAGE_TARNAME +PACKAGE_VERSION +PACKAGE_STRING +PACKAGE_BUGREPORT +exec_prefix +prefix +program_transform_name +bindir +sbindir +libexecdir +datarootdir +datadir +sysconfdir +sharedstatedir +localstatedir +includedir +oldincludedir +docdir +infodir +htmldir +dvidir +pdfdir +psdir +libdir +localedir +mandir +DEFS +ECHO_C +ECHO_N +ECHO_T +LIBS +build_alias +host_alias +target_alias +INSTALL_PROGRAM +INSTALL_SCRIPT +INSTALL_DATA +am__isrc +CYGPATH_W +PACKAGE +VERSION +ACLOCAL +AUTOCONF +AUTOMAKE +AUTOHEADER +MAKEINFO +install_sh +STRIP +INSTALL_STRIP_PROGRAM +mkdir_p +AWK +SET_MAKE +am__leading_dot +AMTAR +am__tar +am__untar +MAINTAINER_MODE_TRUE +MAINTAINER_MODE_FALSE +MAINT +ASSEMBLY_TITLE +ASSEMBLY_DESCRIPTION +ASSEMBLY_VERSION +ASSEMBLY_NAME +expanded_libdir +PKG_CONFIG +MONO_MODULE_CFLAGS +MONO_MODULE_LIBS +MONO +CLR +MCS +CSC +CSC_FLAGS +GACUTIL +GACUTIL_FLAGS +LIBOBJS +LTLIBOBJS' +ac_subst_files='' + ac_precious_vars='build_alias +host_alias +target_alias +PKG_CONFIG +MONO_MODULE_CFLAGS +MONO_MODULE_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` + eval enable_$ac_feature=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` + eval enable_$ac_feature=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` + eval with_$ac_package=\$ac_optarg ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` + eval with_$ac_package=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute directory names. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; } +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + { echo "$as_me: error: Working directory cannot be determined" >&2 + { (exit 1); exit 1; }; } +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + { echo "$as_me: error: pwd does not report name of working directory" >&2 + { (exit 1); exit 1; }; } + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$0" || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +echo X"$0" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 + { (exit 1); exit 1; }; } + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures smartirc4net 0.4.5.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/smartirc4net] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of smartirc4net 0.4.5.1:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-maintainer-mode enable make rules and dependencies not useful + (and sometimes confusing) to the casual installer + +Some influential environment variables: + PKG_CONFIG path to pkg-config utility + MONO_MODULE_CFLAGS + C compiler flags for MONO_MODULE, overriding pkg-config + MONO_MODULE_LIBS + linker flags for MONO_MODULE, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +smartirc4net configure 0.4.5.1 +generated by GNU Autoconf 2.61 + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by smartirc4net $as_me 0.4.5.1, which was +generated by GNU Autoconf 2.61. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + echo "PATH: $as_dir" +done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$ac_configure_args1 '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + esac + done +done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + *) $as_unset $ac_var ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -n "$CONFIG_SITE"; then + set x "$CONFIG_SITE" +elif test "x$prefix" != xNONE; then + set x "$prefix/share/config.site" "$prefix/etc/config.site" +else + set x "$ac_default_prefix/share/config.site" \ + "$ac_default_prefix/etc/config.site" +fi +shift +for ac_site_file +do + if test -r "$ac_site_file"; then + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi + + + + + + + + + + + + + + + + + + + + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +am__api_version='1.10' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} + { (exit 1); exit 1; }; } +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done +IFS=$as_save_IFS + + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +{ echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm -f conftest.sed + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 +echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done +done +IFS=$as_save_IFS + +fi + + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + test -d ./--version && rmdir ./--version + MKDIR_P="$ac_install_sh -d" + fi +fi +{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 +echo "${ECHO_T}$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { echo "$as_me:$LINENO: result: $AWK" >&5 +echo "${ECHO_T}$AWK" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + SET_MAKE= +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='smartirc4net' + VERSION='0.4.5.1' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } + # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=no +fi + + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } + if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' +else + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + + MAINT=$MAINTAINER_MODE_TRUE + + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done +IFS=$as_save_IFS + + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + +ASSEMBLY_TITLE="SmartIrc4net" +ASSEMBLY_DESCRIPTION="IRC library for CLI" +ASSEMBLY_NAME="Meebey.SmartIrc4net" +ASSEMBLY_VERSION="0.4.5.0" + + + + + + + expanded_libdir=`( + case $prefix in + NONE) prefix=$ac_default_prefix ;; + *) ;; + esac + case $exec_prefix in + NONE) exec_prefix=$prefix ;; + *) ;; + esac + eval echo $libdir + )` + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 +echo "${ECHO_T}$PKG_CONFIG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 +echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&5 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools +whose name does not start with the host triplet. If you think this +configuration is useful to you, please write to autoconf@gnu.org." >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 +echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + PKG_CONFIG="" + fi + +fi + + +pkg_failed=no +{ echo "$as_me:$LINENO: checking for MONO_MODULE" >&5 +echo $ECHO_N "checking for MONO_MODULE... $ECHO_C" >&6; } + +if test -n "$PKG_CONFIG"; then + if test -n "$MONO_MODULE_CFLAGS"; then + pkg_cv_MONO_MODULE_CFLAGS="$MONO_MODULE_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mono >= 1.2.6\"") >&5 + ($PKG_CONFIG --exists --print-errors "mono >= 1.2.6") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + pkg_cv_MONO_MODULE_CFLAGS=`$PKG_CONFIG --cflags "mono >= 1.2.6" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi +if test -n "$PKG_CONFIG"; then + if test -n "$MONO_MODULE_LIBS"; then + pkg_cv_MONO_MODULE_LIBS="$MONO_MODULE_LIBS" + else + if test -n "$PKG_CONFIG" && \ + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mono >= 1.2.6\"") >&5 + ($PKG_CONFIG --exists --print-errors "mono >= 1.2.6") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + pkg_cv_MONO_MODULE_LIBS=`$PKG_CONFIG --libs "mono >= 1.2.6" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + MONO_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mono >= 1.2.6"` + else + MONO_MODULE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mono >= 1.2.6"` + fi + # Put the nasty error message in config.log where it belongs + echo "$MONO_MODULE_PKG_ERRORS" >&5 + + { { echo "$as_me:$LINENO: error: Package requirements (mono >= 1.2.6) were not met: + +$MONO_MODULE_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables MONO_MODULE_CFLAGS +and MONO_MODULE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. +" >&5 +echo "$as_me: error: Package requirements (mono >= 1.2.6) were not met: + +$MONO_MODULE_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables MONO_MODULE_CFLAGS +and MONO_MODULE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. +" >&2;} + { (exit 1); exit 1; }; } +elif test $pkg_failed = untried; then + { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables MONO_MODULE_CFLAGS +and MONO_MODULE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details." >&5 +echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables MONO_MODULE_CFLAGS +and MONO_MODULE_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +else + MONO_MODULE_CFLAGS=$pkg_cv_MONO_MODULE_CFLAGS + MONO_MODULE_LIBS=$pkg_cv_MONO_MODULE_LIBS + { echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6; } + : +fi + + + + + # Extract the first word of "mono", so it can be a program name with args. +set dummy mono; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_MONO+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $MONO in + [\\/]* | ?:[\\/]*) + ac_cv_path_MONO="$MONO" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_MONO="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_MONO" && ac_cv_path_MONO="no" + ;; +esac +fi +MONO=$ac_cv_path_MONO +if test -n "$MONO"; then + { echo "$as_me:$LINENO: result: $MONO" >&5 +echo "${ECHO_T}$MONO" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + + + if test "xMONO" = "xno"; then + { { echo "$as_me:$LINENO: error: You need to install 'mono'" >&5 +echo "$as_me: error: You need to install 'mono'" >&2;} + { (exit 1); exit 1; }; } + fi + + +CLR=$MONO + + + + + # Extract the first word of "gmcs", so it can be a program name with args. +set dummy gmcs; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_MCS+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $MCS in + [\\/]* | ?:[\\/]*) + ac_cv_path_MCS="$MCS" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + test -z "$ac_cv_path_MCS" && ac_cv_path_MCS="no" + ;; +esac +fi +MCS=$ac_cv_path_MCS +if test -n "$MCS"; then + { echo "$as_me:$LINENO: result: $MCS" >&5 +echo "${ECHO_T}$MCS" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + + + if test "xMCS" = "xno"; then + { { echo "$as_me:$LINENO: error: You need to install 'gmcs'" >&5 +echo "$as_me: error: You need to install 'gmcs'" >&2;} + { (exit 1); exit 1; }; } + fi + + +CSC=$MCS + +CSC_FLAGS="-debug -define:TRACE,DEBUG" + + + + for asm in $(echo "2.0,System +" | cut -d, -f2- | sed 's/\,/ /g') + do + { echo "$as_me:$LINENO: checking for Mono 2.0 GAC for $asm.dll" >&5 +echo $ECHO_N "checking for Mono 2.0 GAC for $asm.dll... $ECHO_C" >&6; } + if test \ + -e "$($PKG_CONFIG --variable=libdir mono)/mono/2.0/$asm.dll" -o \ + -e "$($PKG_CONFIG --variable=prefix mono)/lib/mono/2.0/$asm.dll"; \ + then \ + { echo "$as_me:$LINENO: result: found" >&5 +echo "${ECHO_T}found" >&6; } + else + { echo "$as_me:$LINENO: result: not found" >&5 +echo "${ECHO_T}not found" >&6; } + { { echo "$as_me:$LINENO: error: missing reqired Mono 2.0 assembly: $asm.dll" >&5 +echo "$as_me: error: missing reqired Mono 2.0 assembly: $asm.dll" >&2;} + { (exit 1); exit 1; }; } + fi + done + + + +# Extract the first word of "gacutil", so it can be a program name with args. +set dummy gacutil; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_path_GACUTIL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $GACUTIL in + [\\/]* | ?:[\\/]*) + ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + + ;; +esac +fi +GACUTIL=$ac_cv_path_GACUTIL +if test -n "$GACUTIL"; then + { echo "$as_me:$LINENO: result: $GACUTIL" >&5 +echo "${ECHO_T}$GACUTIL" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +if test x$GACUTIL = x; then + { { echo "$as_me:$LINENO: error: You need gacutil" >&5 +echo "$as_me: error: You need gacutil" >&2;} + { (exit 1); exit 1; }; } +fi + +#PKG_CHECK_MODULES([LOG4NET], [log4net]) + +GACUTIL_FLAGS='-root $(DESTDIR)$(libdir)' + + +ac_config_files="$ac_config_files Makefile smartirc4net.pc src/Makefile src/AssemblyInfo.cs" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + *) $as_unset $ac_var ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { echo "$as_me:$LINENO: updating cache $cache_file" >&5 +echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 +echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +ac_script=' +t clear +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +t quote +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +t quote +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` + + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + + + +# PATH needs CR +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +as_nl=' +' +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + { (exit 1); exit 1; } +fi + +# Work around bugs in pre-3.0 UWIN ksh. +for as_var in ENV MAIL MAILPATH +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# CDPATH. +$as_unset CDPATH + + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line after each line using $LINENO; the second 'sed' + # does the real work. The second script uses 'N' to pair each + # line-number line with the line containing $LINENO, and appends + # trailing '-' during substitution so that $LINENO is not a special + # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # scripts with optimization help from Paolo Bonzini. Blame Lee + # E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir +fi +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 + +# Save the log message, to keep $[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by smartirc4net $as_me 0.4.5.1, which was +generated by GNU Autoconf 2.61. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +# Files that config.status was made for. +config_files="$ac_config_files" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +ac_cs_version="\\ +smartirc4net config.status 0.4.5.1 +configured by $0, generated by GNU Autoconf 2.61, + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" + +Copyright (C) 2006 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + echo "$ac_cs_version"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES="$CONFIG_FILES $ac_optarg" + ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) { echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +if \$ac_cs_recheck; then + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + CONFIG_SHELL=$SHELL + export CONFIG_SHELL + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "smartirc4net.pc") CONFIG_FILES="$CONFIG_FILES smartirc4net.pc" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/AssemblyInfo.cs") CONFIG_FILES="$CONFIG_FILES src/AssemblyInfo.cs" ;; + + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || +{ + echo "$me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +# +# Set up the sed scripts for CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "$CONFIG_FILES"; then + +_ACEOF + + + +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + cat >conf$$subs.sed <<_ACEOF +SHELL!$SHELL$ac_delim +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim +PACKAGE_NAME!$PACKAGE_NAME$ac_delim +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim +PACKAGE_STRING!$PACKAGE_STRING$ac_delim +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim +exec_prefix!$exec_prefix$ac_delim +prefix!$prefix$ac_delim +program_transform_name!$program_transform_name$ac_delim +bindir!$bindir$ac_delim +sbindir!$sbindir$ac_delim +libexecdir!$libexecdir$ac_delim +datarootdir!$datarootdir$ac_delim +datadir!$datadir$ac_delim +sysconfdir!$sysconfdir$ac_delim +sharedstatedir!$sharedstatedir$ac_delim +localstatedir!$localstatedir$ac_delim +includedir!$includedir$ac_delim +oldincludedir!$oldincludedir$ac_delim +docdir!$docdir$ac_delim +infodir!$infodir$ac_delim +htmldir!$htmldir$ac_delim +dvidir!$dvidir$ac_delim +pdfdir!$pdfdir$ac_delim +psdir!$psdir$ac_delim +libdir!$libdir$ac_delim +localedir!$localedir$ac_delim +mandir!$mandir$ac_delim +DEFS!$DEFS$ac_delim +ECHO_C!$ECHO_C$ac_delim +ECHO_N!$ECHO_N$ac_delim +ECHO_T!$ECHO_T$ac_delim +LIBS!$LIBS$ac_delim +build_alias!$build_alias$ac_delim +host_alias!$host_alias$ac_delim +target_alias!$target_alias$ac_delim +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim +INSTALL_DATA!$INSTALL_DATA$ac_delim +am__isrc!$am__isrc$ac_delim +CYGPATH_W!$CYGPATH_W$ac_delim +PACKAGE!$PACKAGE$ac_delim +VERSION!$VERSION$ac_delim +ACLOCAL!$ACLOCAL$ac_delim +AUTOCONF!$AUTOCONF$ac_delim +AUTOMAKE!$AUTOMAKE$ac_delim +AUTOHEADER!$AUTOHEADER$ac_delim +MAKEINFO!$MAKEINFO$ac_delim +install_sh!$install_sh$ac_delim +STRIP!$STRIP$ac_delim +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim +mkdir_p!$mkdir_p$ac_delim +AWK!$AWK$ac_delim +SET_MAKE!$SET_MAKE$ac_delim +am__leading_dot!$am__leading_dot$ac_delim +AMTAR!$AMTAR$ac_delim +am__tar!$am__tar$ac_delim +am__untar!$am__untar$ac_delim +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim +MAINT!$MAINT$ac_delim +ASSEMBLY_TITLE!$ASSEMBLY_TITLE$ac_delim +ASSEMBLY_DESCRIPTION!$ASSEMBLY_DESCRIPTION$ac_delim +ASSEMBLY_VERSION!$ASSEMBLY_VERSION$ac_delim +ASSEMBLY_NAME!$ASSEMBLY_NAME$ac_delim +expanded_libdir!$expanded_libdir$ac_delim +PKG_CONFIG!$PKG_CONFIG$ac_delim +MONO_MODULE_CFLAGS!$MONO_MODULE_CFLAGS$ac_delim +MONO_MODULE_LIBS!$MONO_MODULE_LIBS$ac_delim +MONO!$MONO$ac_delim +CLR!$CLR$ac_delim +MCS!$MCS$ac_delim +CSC!$CSC$ac_delim +CSC_FLAGS!$CSC_FLAGS$ac_delim +GACUTIL!$GACUTIL$ac_delim +GACUTIL_FLAGS!$GACUTIL_FLAGS$ac_delim +LIBOBJS!$LIBOBJS$ac_delim +LTLIBOBJS!$LTLIBOBJS$ac_delim +_ACEOF + + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +if test -n "$ac_eof"; then + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` + ac_eof=`expr $ac_eof + 1` +fi + +cat >>$CONFIG_STATUS <<_ACEOF +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end +_ACEOF +sed ' +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +s/^/s,@/; s/!/@,|#_!!_#|/ +:n +t n +s/'"$ac_delim"'$/,g/; t +s/$/\\/; p +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +:end +s/|#_!!_#|//g +CEOF$ac_eof +_ACEOF + + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF +fi # test -n "$CONFIG_FILES" + + +for ac_tag in :F $CONFIG_FILES +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 +echo "$as_me: error: Invalid tag $ac_tag." >&2;} + { (exit 1); exit 1; }; };; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 +echo "$as_me: error: cannot find input file: $ac_f" >&2;} + { (exit 1); exit 1; }; };; + esac + ac_file_inputs="$ac_file_inputs $ac_f" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input="Generated from "`IFS=: + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + fi + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin";; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + { as_dir="$ac_dir" + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= + +case `sed -n '/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p +' $ac_file_inputs` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s&@configure_input@&$configure_input&;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} + + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out"; rm -f "$tmp/out";; + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; + esac + ;; + + + + esac + +done # for ac_tag + + +{ (exit 0); exit 0; } +_ACEOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi + + +{ echo "$as_me:$LINENO: result: + Configuration summary for $PACKAGE_NAME ($VERSION) + + * Installation prefix: $prefix +" >&5 +echo "${ECHO_T} + Configuration summary for $PACKAGE_NAME ($VERSION) + + * Installation prefix: $prefix +" >&6; } diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/configure.ac b/SmartIrc4net/SmartIrc4net-0.4.5.1/configure.ac new file mode 100644 index 0000000..7041edb --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/configure.ac @@ -0,0 +1,52 @@ +AC_PREREQ([2.54]) +AC_INIT([smartirc4net], [0.4.5.1]) +AM_INIT_AUTOMAKE([foreign]) +AM_MAINTAINER_MODE + +AC_PROG_INSTALL + +ASSEMBLY_TITLE="SmartIrc4net" +ASSEMBLY_DESCRIPTION="IRC library for CLI" +ASSEMBLY_NAME="Meebey.SmartIrc4net" +ASSEMBLY_VERSION="0.4.5.0" +AC_SUBST(ASSEMBLY_TITLE) +AC_SUBST(ASSEMBLY_DESCRIPTION) +AC_SUBST(ASSEMBLY_VERSION) +AC_SUBST(ASSEMBLY_NAME) + +SHAMROCK_EXPAND_LIBDIR +SHAMROCK_CHECK_MONO_MODULE(1.2.6) +SHAMROCK_FIND_MONO_RUNTIME +AC_SUBST(CLR, $MONO) +SHAMROCK_FIND_MONO_2_0_COMPILER +AC_SUBST(CSC, $MCS) +CSC_FLAGS="-debug -define:TRACE,DEBUG" +AC_SUBST(CSC_FLAGS) +SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([ + System +]) + +AC_PATH_PROG(GACUTIL, gacutil) +if test x$GACUTIL = x; then + AC_MSG_ERROR(You need gacutil) +fi + +#PKG_CHECK_MODULES([LOG4NET], [log4net]) + +GACUTIL_FLAGS='-root $(DESTDIR)$(libdir)' +AC_SUBST(GACUTIL_FLAGS) + +AC_CONFIG_FILES([ + Makefile + smartirc4net.pc + src/Makefile + src/AssemblyInfo.cs +]) + +AC_OUTPUT + +AC_MSG_RESULT([ + Configuration summary for $PACKAGE_NAME ($VERSION) + + * Installation prefix: $prefix +]) diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/expansions.m4 b/SmartIrc4net/SmartIrc4net-0.4.5.1/expansions.m4 new file mode 100644 index 0000000..ba62356 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/expansions.m4 @@ -0,0 +1,50 @@ +AC_DEFUN([SHAMROCK_EXPAND_LIBDIR], +[ + expanded_libdir=`( + case $prefix in + NONE) prefix=$ac_default_prefix ;; + *) ;; + esac + case $exec_prefix in + NONE) exec_prefix=$prefix ;; + *) ;; + esac + eval echo $libdir + )` + AC_SUBST(expanded_libdir) +]) + +AC_DEFUN([SHAMROCK_EXPAND_BINDIR], +[ + expanded_bindir=`( + case $prefix in + NONE) prefix=$ac_default_prefix ;; + *) ;; + esac + case $exec_prefix in + NONE) exec_prefix=$prefix ;; + *) ;; + esac + eval echo $bindir + )` + AC_SUBST(expanded_bindir) +]) + +AC_DEFUN([SHAMROCK_EXPAND_DATADIR], +[ + case $prefix in + NONE) prefix=$ac_default_prefix ;; + *) ;; + esac + + case $exec_prefix in + NONE) exec_prefix=$prefix ;; + *) ;; + esac + + expanded_datadir=`(eval echo $datadir)` + expanded_datadir=`(eval echo $expanded_datadir)` + + AC_SUBST(expanded_datadir) +]) + diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/install-sh b/SmartIrc4net/SmartIrc4net-0.4.5.1/install-sh new file mode 100644 index 0000000..a5897de --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/install-sh @@ -0,0 +1,519 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2006-12-25.00 + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +nl=' +' +IFS=" "" $nl" + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +no_target_directory= + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call `install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + trap '(exit $?); exit' 1 2 13 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names starting with `-'. + case $src in + -*) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + + dst=$dst_arg + # Protect names starting with `-'. + case $dst in + -*) dst=./$dst;; + esac + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writeable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + -*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test -z "$d" && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/missing b/SmartIrc4net/SmartIrc4net-0.4.5.1/missing new file mode 100644 index 0000000..1c8ff70 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/missing @@ -0,0 +1,367 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. + +scriptversion=2006-05-10.23 + +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 +# Free Software Foundation, Inc. +# Originally by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' +sed_minuso='s/.* -o \([^ ]*\).*/\1/p' + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + +msg="missing on your system" + +case $1 in +--run) + # Try to run requested program, and just exit if it succeeds. + run= + shift + "$@" && exit 0 + # Exit code 63 means version mismatch. This often happens + # when the user try to use an ancient version of a tool on + # a file that requires a minimum version. In this case we + # we should proceed has if the program had been absent, or + # if --run hadn't been passed. + if test $? = 63; then + run=: + msg="probably too old" + fi + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + autom4te touch the output file, or create a stub one + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch] + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + +esac + +# Now exit if we have it, but it failed. Also exit now if we +# don't have it and --version was passed (most likely to detect +# the program). +case $1 in + lex|yacc) + # Not GNU programs, they don't have --version. + ;; + + tar) + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + exit 1 + fi + ;; + + *) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + # Could not run --version or --help. This is probably someone + # running `$TOOL --version' or `$TOOL --help' to check whether + # $TOOL exists and not knowing $TOOL uses missing. + exit 1 + fi + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case $1 in + aclocal*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case $f in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te) + echo 1>&2 "\ +WARNING: \`$1' is needed, but is $msg. + You might have modified some files without having the + proper tools for further handling them. + You can get \`$1' as part of \`Autoconf' from any GNU + archive site." + + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' $msg. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if test $# -ne 1; then + eval LASTARG="\${$#}" + case $LASTARG in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if test ! -f y.tab.h; then + echo >y.tab.h + fi + if test ! -f y.tab.c; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if test $# -ne 1; then + eval LASTARG="\${$#}" + case $LASTARG in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if test ! -f lex.yy.c; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit 1 + fi + ;; + + makeinfo) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + # The file to touch is that specified with -o ... + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -z "$file"; then + # ... or it is the one specified with @setfilename ... + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n ' + /^@setfilename/{ + s/.* \([^ ]*\) *$/\1/ + p + q + }' $infile` + # ... or it is derived from the source name (dir/f.texi becomes f.info) + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info + fi + # If the file does not exist, the user really needs makeinfo; + # let's fail without touching anything. + test -f $file || exit 1 + touch $file + ;; + + tar) + shift + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg="$1" + if shift; then + case $firstarg in + *o*) + firstarg=`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case $firstarg in + *h*) + firstarg=`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and is $msg. + You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequisites for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/mono.m4 b/SmartIrc4net/SmartIrc4net-0.4.5.1/mono.m4 new file mode 100644 index 0000000..641eee2 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/mono.m4 @@ -0,0 +1,55 @@ +AC_DEFUN([SHAMROCK_FIND_MONO_1_0_COMPILER], +[ + SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs) +]) + +AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER], +[ + SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs) +]) + +AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME], +[ + SHAMROCK_FIND_PROGRAM_OR_BAIL(MONO, mono) +]) + +AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE], +[ + PKG_CHECK_MODULES(MONO_MODULE, mono >= $1) +]) + +AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE_NOBAIL], +[ + PKG_CHECK_MODULES(MONO_MODULE, mono >= $1, + HAVE_MONO_MODULE=yes, HAVE_MONO_MODULE=no) + AC_SUBST(HAVE_MONO_MODULE) +]) + +AC_DEFUN([_SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES], +[ + for asm in $(echo "$*" | cut -d, -f2- | sed 's/\,/ /g') + do + AC_MSG_CHECKING([for Mono $1 GAC for $asm.dll]) + if test \ + -e "$($PKG_CONFIG --variable=libdir mono)/mono/$1/$asm.dll" -o \ + -e "$($PKG_CONFIG --variable=prefix mono)/lib/mono/$1/$asm.dll"; \ + then \ + AC_MSG_RESULT([found]) + else + AC_MSG_RESULT([not found]) + AC_MSG_ERROR([missing reqired Mono $1 assembly: $asm.dll]) + fi + done +]) + +AC_DEFUN([SHAMROCK_CHECK_MONO_1_0_GAC_ASSEMBLIES], +[ + _SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES(1.0, $*) +]) + +AC_DEFUN([SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES], +[ + _SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES(2.0, $*) +]) + + diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/programs.m4 b/SmartIrc4net/SmartIrc4net-0.4.5.1/programs.m4 new file mode 100644 index 0000000..8273868 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/programs.m4 @@ -0,0 +1,15 @@ +AC_DEFUN([SHAMROCK_FIND_PROGRAM], +[ + AC_PATH_PROG($1, $2, $3) + AC_SUBST($1) +]) + +AC_DEFUN([SHAMROCK_FIND_PROGRAM_OR_BAIL], +[ + SHAMROCK_FIND_PROGRAM($1, $2, no) + if test "x$1" = "xno"; then + AC_MSG_ERROR([You need to install '$2']) + fi +]) + + diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/smartirc4net.pc.in b/SmartIrc4net/SmartIrc4net-0.4.5.1/smartirc4net.pc.in new file mode 100644 index 0000000..fdcd4f7 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/smartirc4net.pc.in @@ -0,0 +1,8 @@ +prefix=@prefix@ +exec_prefix=${prefix} +libdir=@libdir@ + +Name: @ASSEMBLY_TITLE@ +Description: @ASSEMBLY_DESCRIPTION@ +Version: @ASSEMBLY_VERSION@ +Libs: -r:${libdir}/@PACKAGE_NAME@/@ASSEMBLY_NAME@.dll diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/smartirc4net.snk b/SmartIrc4net/SmartIrc4net-0.4.5.1/smartirc4net.snk new file mode 100644 index 0000000..f9aef3f Binary files /dev/null and b/SmartIrc4net/SmartIrc4net-0.4.5.1/smartirc4net.snk differ diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/AssemblyInfo.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/AssemblyInfo.cs new file mode 100644 index 0000000..97ef0f1 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/AssemblyInfo.cs @@ -0,0 +1,70 @@ +/* + * $Id: AssemblyInfo.cs 288 2008-07-28 21:56:47Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/AssemblyInfo.cs $ + * $Rev: 288 $ + * $Author: meebey $ + * $Date: 2008-07-28 23:56:47 +0200 (Mon, 28 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Information about this assembly is defined by the following +// attributes. +// +// change them to the information which is associated with the assembly +// you compile. + +[assembly: CLSCompliant(true)] +[assembly: ComVisible(false)] + +[assembly: AssemblyTitle("SmartIrc4net")] +[assembly: AssemblyDescription("IRC library for CLI")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("qNETp")] +[assembly: AssemblyProduct("SmartIrc4net")] +[assembly: AssemblyCopyright("2003-2008 (C) Mirco Bauer ")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has following format : +// +// Major.Minor.Build.Revision +// +// You can specify all values by your own or you can build default build and revision +// numbers with the '*' character (the default): + +[assembly: AssemblyVersion("0.4.5.0")] + +// The following attributes specify the key for the sign of your assembly. See the +// .NET Framework documentation for more information about signing. +// This is not required, if you don't want signing let these attributes like they're. +#if DELAY_SIGN +[assembly: AssemblyDelaySign(true)] +[assembly: AssemblyKeyFile("../SmartIrc4net-pub.snk")] +#else +[assembly: AssemblyDelaySign(false)] +[assembly: AssemblyKeyFile("")] +#endif diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/AssemblyInfo.cs.in b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/AssemblyInfo.cs.in new file mode 100644 index 0000000..27ff705 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/AssemblyInfo.cs.in @@ -0,0 +1,70 @@ +/* + * $Id: AssemblyInfo.cs.in 287 2008-07-28 21:54:14Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/AssemblyInfo.cs.in $ + * $Rev: 287 $ + * $Author: meebey $ + * $Date: 2008-07-28 23:54:14 +0200 (Mon, 28 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Information about this assembly is defined by the following +// attributes. +// +// change them to the information which is associated with the assembly +// you compile. + +[assembly: CLSCompliant(true)] +[assembly: ComVisible(false)] + +[assembly: AssemblyTitle("@ASSEMBLY_TITLE@")] +[assembly: AssemblyDescription("@ASSEMBLY_DESCRIPTION@")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("qNETp")] +[assembly: AssemblyProduct("SmartIrc4net")] +[assembly: AssemblyCopyright("2003-2008 (C) Mirco Bauer ")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has following format : +// +// Major.Minor.Build.Revision +// +// You can specify all values by your own or you can build default build and revision +// numbers with the '*' character (the default): + +[assembly: AssemblyVersion("@ASSEMBLY_VERSION@")] + +// The following attributes specify the key for the sign of your assembly. See the +// .NET Framework documentation for more information about signing. +// This is not required, if you don't want signing let these attributes like they're. +#if DELAY_SIGN +[assembly: AssemblyDelaySign(true)] +[assembly: AssemblyKeyFile("../SmartIrc4net-pub.snk")] +#else +[assembly: AssemblyDelaySign(false)] +[assembly: AssemblyKeyFile("")] +#endif diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Consts.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Consts.cs new file mode 100644 index 0000000..0e70f4f --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Consts.cs @@ -0,0 +1,239 @@ +/* + * $Id: Consts.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/Consts.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + public enum Priority + { + Low, + BelowMedium, + Medium, + AboveMedium, + High, + Critical + } + + /// + /// + /// + public enum SendType + { + Message, + Action, + Notice, + CtcpReply, + CtcpRequest + } + + /// + /// + /// + public enum ReceiveType + { + Info, + Login, + Motd, + List, + Join, + Kick, + Part, + Invite, + Quit, + Who, + WhoIs, + WhoWas, + Name, + Topic, + BanList, + NickChange, + TopicChange, + UserMode, + UserModeChange, + ChannelMode, + ChannelModeChange, + ChannelMessage, + ChannelAction, + ChannelNotice, + QueryMessage, + QueryAction, + QueryNotice, + CtcpReply, + CtcpRequest, + Error, + ErrorMessage, + Unknown + } + + /// + /// + /// + public enum ReplyCode: int + { + Null = 000, + Welcome = 001, + YourHost = 002, + Created = 003, + MyInfo = 004, + Bounce = 005, + TraceLink = 200, + TraceConnecting = 201, + TraceHandshake = 202, + TraceUnknown = 203, + TraceOperator = 204, + TraceUser = 205, + TraceServer = 206, + TraceService = 207, + TraceNewType = 208, + TraceClass = 209, + TraceReconnect = 210, + StatsLinkInfo = 211, + StatsCommands = 212, + EndOfStats = 219, + UserModeIs = 221, + ServiceList = 234, + ServiceListEnd = 235, + StatsUptime = 242, + StatsOLine = 243, + LuserClient = 251, + LuserOp = 252, + LuserUnknown = 253, + LuserChannels = 254, + LuserMe = 255, + AdminMe = 256, + AdminLocation1 = 257, + AdminLocation2 = 258, + AdminEmail = 259, + TraceLog = 261, + TraceEnd = 262, + TryAgain = 263, + Away = 301, + UserHost = 302, + IsOn = 303, + UnAway = 305, + NowAway = 306, + WhoIsUser = 311, + WhoIsServer = 312, + WhoIsOperator = 313, + WhoWasUser = 314, + EndOfWho = 315, + WhoIsIdle = 317, + EndOfWhoIs = 318, + WhoIsChannels = 319, + ListStart = 321, + List = 322, + ListEnd = 323, + ChannelModeIs = 324, + UniqueOpIs = 325, + NoTopic = 331, + Topic = 332, + Inviting = 341, + Summoning = 342, + InviteList = 346, + EndOfInviteList = 347, + ExceptionList = 348, + EndOfExceptionList = 349, + Version = 351, + WhoReply = 352, + NamesReply = 353, + Links = 364, + EndOfLinks = 365, + EndOfNames = 366, + BanList = 367, + EndOfBanList = 368, + EndOfWhoWas = 369, + Info = 371, + Motd = 372, + EndOfInfo = 374, + MotdStart = 375, + EndOfMotd = 376, + YouAreOper = 381, + Rehashing = 382, + YouAreService = 383, + Time = 391, + UsersStart = 392, + Users = 393, + EndOfUsers = 394, + NoUsers = 395, + ErrorNoSuchNickname = 401, + ErrorNoSuchServer = 402, + ErrorNoSuchChannel = 403, + ErrorCannotSendToChannel = 404, + ErrorTooManyChannels = 405, + ErrorWasNoSuchNickname = 406, + ErrorTooManyTargets = 407, + ErrorNoSuchService = 408, + ErrorNoOrigin = 409, + ErrorNoRecipient = 411, + ErrorNoTextToSend = 412, + ErrorNoTopLevel = 413, + ErrorWildTopLevel = 414, + ErrorBadMask = 415, + ErrorUnknownCommand = 421, + ErrorNoMotd = 422, + ErrorNoAdminInfo = 423, + ErrorFileError = 424, + ErrorNoNicknameGiven = 431, + ErrorErroneusNickname = 432, + ErrorNicknameInUse = 433, + ErrorNicknameCollision = 436, + ErrorUnavailableResource = 437, + ErrorUserNotInChannel = 441, + ErrorNotOnChannel = 442, + ErrorUserOnChannel = 443, + ErrorNoLogin = 444, + ErrorSummonDisabled = 445, + ErrorUsersDisabled = 446, + ErrorNotRegistered = 451, + ErrorNeedMoreParams = 461, + ErrorAlreadyRegistered = 462, + ErrorNoPermissionForHost = 463, + ErrorPasswordMismatch = 464, + ErrorYouAreBannedCreep = 465, + ErrorYouWillBeBanned = 466, + ErrorKeySet = 467, + ErrorChannelIsFull = 471, + ErrorUnknownMode = 472, + ErrorInviteOnlyChannel = 473, + ErrorBannedFromChannel = 474, + ErrorBadChannelKey = 475, + ErrorBadChannelMask = 476, + ErrorNoChannelModes = 477, + ErrorBanListFull = 478, + ErrorNoPrivileges = 481, + ErrorChannelOpPrivilegesNeeded = 482, + ErrorCannotKillServer = 483, + ErrorRestricted = 484, + ErrorUniqueOpPrivilegesNeeded = 485, + ErrorNoOperHost = 491, + ErrorUserModeUnknownFlag = 501, + ErrorUsersDoNotMatch = 502 + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/EventArgs.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/EventArgs.cs new file mode 100644 index 0000000..fa21e87 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/EventArgs.cs @@ -0,0 +1,56 @@ +/* + * $Id: EventArgs.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/EventArgs.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Collections.Specialized; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + public class IrcEventArgs : EventArgs + { + private readonly IrcMessageData _Data; + + /// + /// + /// + public IrcMessageData Data { + get { + return _Data; + } + } + + internal IrcEventArgs(IrcMessageData data) + { + _Data = data; + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Exceptions.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Exceptions.cs new file mode 100644 index 0000000..b67d7c6 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Exceptions.cs @@ -0,0 +1,138 @@ +/* + * $Id: Exceptions.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/Exceptions.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Runtime.Serialization; + +namespace Meebey.SmartIrc4net +{ + /// + [Serializable()] + public class SmartIrc4netException : ApplicationException + { + public SmartIrc4netException() : base() + { + } + + public SmartIrc4netException(string message) : base(message) + { + } + + public SmartIrc4netException(string message, Exception e) : base(message, e) + { + } + + protected SmartIrc4netException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } + + /// + [Serializable()] + public class ConnectionException : SmartIrc4netException + { + public ConnectionException() : base() + { + } + + public ConnectionException(string message) : base(message) + { + } + + public ConnectionException(string message, Exception e) : base(message, e) + { + } + + protected ConnectionException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } + + /// + [Serializable()] + public class CouldNotConnectException : ConnectionException + { + public CouldNotConnectException() : base() + { + } + + public CouldNotConnectException(string message) : base(message) + { + } + + public CouldNotConnectException(string message, Exception e) : base(message, e) + { + } + + protected CouldNotConnectException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } + + /// + [Serializable()] + public class NotConnectedException : ConnectionException + { + public NotConnectedException() : base() + { + } + + public NotConnectedException(string message) : base(message) + { + } + + public NotConnectedException(string message, Exception e) : base(message, e) + { + } + + protected NotConnectedException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } + + /// + [Serializable()] + public class AlreadyConnectedException : ConnectionException + { + public AlreadyConnectedException() : base() + { + } + + public AlreadyConnectedException(string message) : base(message) + { + } + + public AlreadyConnectedException(string message, Exception e) : base(message, e) + { + } + + protected AlreadyConnectedException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/BanInfo.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/BanInfo.cs new file mode 100644 index 0000000..68a6869 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/BanInfo.cs @@ -0,0 +1,64 @@ +/* + * $Id: IrcUser.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/IrcUser.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2008 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +using System; + +namespace Meebey.SmartIrc4net +{ + public class BanInfo + { + private string f_Channel; + private string f_Mask; + + public string Channel { + get { + return f_Channel; + } + } + + public string Mask { + get { + return f_Mask; + } + } + + private BanInfo() + { + } + + public static BanInfo Parse(IrcMessageData data) + { + BanInfo info = new BanInfo(); + // :magnet.oftc.net 367 meebey #smuxi test!test@test meebey!~meebey@e176002059.adsl.alicedsl.de 1216309801.. + info.f_Channel = data.RawMessageArray[3]; + info.f_Mask= data.RawMessageArray[4]; + return info; + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/Channel.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/Channel.cs new file mode 100644 index 0000000..3f29480 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/Channel.cs @@ -0,0 +1,247 @@ +/* + * $Id: Channel.cs 278 2008-06-25 19:41:54Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/Channel.cs $ + * $Rev: 278 $ + * $Author: meebey $ + * $Date: 2008-06-25 21:41:54 +0200 (Wed, 25 Jun 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Collections; +using System.Collections.Specialized; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + public class Channel + { + private string _Name; + private string _Key = String.Empty; + private Hashtable _Users = Hashtable.Synchronized(new Hashtable(new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer())); + private Hashtable _Ops = Hashtable.Synchronized(new Hashtable(new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer())); + private Hashtable _Voices = Hashtable.Synchronized(new Hashtable(new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer())); + private StringCollection _Bans = new StringCollection(); + private string _Topic = String.Empty; + private int _UserLimit; + private string _Mode = String.Empty; + private DateTime _ActiveSyncStart; + private DateTime _ActiveSyncStop; + private TimeSpan _ActiveSyncTime; + private bool _IsSycned; + + /// + /// + /// + /// + internal Channel(string name) + { + _Name = name; + _ActiveSyncStart = DateTime.Now; + } + +#if LOG4NET + ~Channel() + { + Logger.ChannelSyncing.Debug("Channel ("+Name+") destroyed"); + } +#endif + + /// + /// + /// + /// + public string Name { + get { + return _Name; + } + } + + /// + /// + /// + /// + public string Key { + get { + return _Key; + } + set { + _Key = value; + } + } + + /// + /// + /// + /// + public Hashtable Users { + get { + return (Hashtable)_Users.Clone(); + } + } + + /// + /// + /// + /// + internal Hashtable UnsafeUsers { + get { + return _Users; + } + } + + /// + /// + /// + /// + public Hashtable Ops { + get { + return (Hashtable)_Ops.Clone(); + } + } + + /// + /// + /// + /// + internal Hashtable UnsafeOps { + get { + return _Ops; + } + } + + /// + /// + /// + /// + public Hashtable Voices { + get { + return (Hashtable)_Voices.Clone(); + } + } + + /// + /// + /// + /// + internal Hashtable UnsafeVoices { + get { + return _Voices; + } + } + + /// + /// + /// + /// + public StringCollection Bans { + get { + return _Bans; + } + } + + /// + /// + /// + /// + public string Topic { + get { + return _Topic; + } + set { + _Topic = value; + } + } + + /// + /// + /// + /// + public int UserLimit { + get { + return _UserLimit; + } + set { + _UserLimit = value; + } + } + + /// + /// + /// + /// + public string Mode { + get { + return _Mode; + } + set { + _Mode = value; + } + } + + /// + /// + /// + /// + public DateTime ActiveSyncStart { + get { + return _ActiveSyncStart; + } + } + + /// + /// + /// + /// + public DateTime ActiveSyncStop { + get { + return _ActiveSyncStop; + } + set { + _ActiveSyncStop = value; + _ActiveSyncTime = _ActiveSyncStop.Subtract(_ActiveSyncStart); + } + } + + /// + /// + /// + /// + public TimeSpan ActiveSyncTime { + get { + return _ActiveSyncTime; + } + } + + public bool IsSycned { + get { + return _IsSycned; + } + set { + _IsSycned = value; + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/ChannelInfo.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/ChannelInfo.cs new file mode 100644 index 0000000..8224408 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/ChannelInfo.cs @@ -0,0 +1,64 @@ +/* + * $Id: IrcUser.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/IrcUser.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2008 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; + +namespace Meebey.SmartIrc4net +{ + public class ChannelInfo + { + private string f_Channel; + private int f_UserCount; + private string f_Topic; + + public string Channel { + get { + return f_Channel; + } + } + + public int UserCount { + get { + return f_UserCount; + } + } + + public string Topic { + get { + return f_Topic; + } + } + + internal ChannelInfo(string channel, int userCount, string topic) + { + f_Channel = channel; + f_UserCount = userCount; + f_Topic = topic; + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/ChannelUser.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/ChannelUser.cs new file mode 100644 index 0000000..bab0ecb --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/ChannelUser.cs @@ -0,0 +1,193 @@ +/* + * $Id: ChannelUser.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/ChannelUser.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +namespace Meebey.SmartIrc4net +{ + /// + /// This class manages the information of a user within a channel. + /// + /// + /// only used with channel sync + /// + /// + public class ChannelUser + { + private string _Channel; + private IrcUser _IrcUser; + private bool _IsOp; + private bool _IsVoice; + + /// + /// + /// + /// + /// + internal ChannelUser(string channel, IrcUser ircuser) + { + _Channel = channel; + _IrcUser = ircuser; + } + +#if LOG4NET + ~ChannelUser() + { + Logger.ChannelSyncing.Debug("ChannelUser ("+Channel+":"+IrcUser.Nick+") destroyed"); + } +#endif + + /// + /// Gets the channel name + /// + public string Channel { + get { + return _Channel; + } + } + + /// + /// Gets the server operator status of the user + /// + public bool IsIrcOp { + get { + return _IrcUser.IsIrcOp; + } + } + + /// + /// Gets or sets the op flag of the user (+o) + /// + /// + /// only used with channel sync + /// + public bool IsOp { + get { + return _IsOp; + } + set { + _IsOp = value; + } + } + + /// + /// Gets or sets the voice flag of the user (+v) + /// + /// + /// only used with channel sync + /// + public bool IsVoice { + get { + return _IsVoice; + } + set { + _IsVoice = value; + } + } + + /// + /// Gets the away status of the user + /// + public bool IsAway { + get { + return _IrcUser.IsAway; + } + } + + /// + /// Gets the underlaying IrcUser object + /// + public IrcUser IrcUser { + get { + return _IrcUser; + } + } + + /// + /// Gets the nickname of the user + /// + public string Nick { + get { + return _IrcUser.Nick; + } + } + + /// + /// Gets the identity (username) of the user, which is used by some IRC networks for authentication. + /// + public string Ident { + get { + return _IrcUser.Ident; + } + } + + /// + /// Gets the hostname of the user, + /// + public string Host { + get { + return _IrcUser.Host; + } + } + + /// + /// Gets the supposed real name of the user. + /// + public string Realname { + get { + return _IrcUser.Realname; + } + } + + /// + /// Gets the server the user is connected to. + /// + /// + public string Server { + get { + return _IrcUser.Server; + } + } + + /// + /// Gets or sets the count of hops between you and the user's server + /// + public int HopCount { + get { + return _IrcUser.HopCount; + } + } + + /// + /// Gets the list of channels the user has joined + /// + public string[] JoinedChannels { + get { + return _IrcUser.JoinedChannels; + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/Delegates.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/Delegates.cs new file mode 100644 index 0000000..c570cc8 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/Delegates.cs @@ -0,0 +1,58 @@ +/* + * $Id: Delegates.cs 279 2008-07-15 21:31:12Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/Delegates.cs $ + * $Rev: 279 $ + * $Author: meebey $ + * $Date: 2008-07-15 23:31:12 +0200 (Tue, 15 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +namespace Meebey.SmartIrc4net +{ + public delegate void IrcEventHandler(object sender, IrcEventArgs e); + public delegate void CtcpEventHandler(object sender, CtcpEventArgs e); + public delegate void ActionEventHandler(object sender, ActionEventArgs e); + public delegate void ErrorEventHandler(object sender, ErrorEventArgs e); + public delegate void PingEventHandler(object sender, PingEventArgs e); + public delegate void KickEventHandler(object sender, KickEventArgs e); + public delegate void JoinEventHandler(object sender, JoinEventArgs e); + public delegate void NamesEventHandler(object sender, NamesEventArgs e); + public delegate void ListEventHandler(object sender, ListEventArgs e); + public delegate void PartEventHandler(object sender, PartEventArgs e); + public delegate void InviteEventHandler(object sender, InviteEventArgs e); + public delegate void OpEventHandler(object sender, OpEventArgs e); + public delegate void DeopEventHandler(object sender, DeopEventArgs e); + public delegate void HalfopEventHandler(object sender, HalfopEventArgs e); + public delegate void DehalfopEventHandler(object sender, DehalfopEventArgs e); + public delegate void VoiceEventHandler(object sender, VoiceEventArgs e); + public delegate void DevoiceEventHandler(object sender, DevoiceEventArgs e); + public delegate void BanEventHandler(object sender, BanEventArgs e); + public delegate void UnbanEventHandler(object sender, UnbanEventArgs e); + public delegate void TopicEventHandler(object sender, TopicEventArgs e); + public delegate void TopicChangeEventHandler(object sender, TopicChangeEventArgs e); + public delegate void NickChangeEventHandler(object sender, NickChangeEventArgs e); + public delegate void QuitEventHandler(object sender, QuitEventArgs e); + public delegate void AwayEventHandler(object sender, AwayEventArgs e); + public delegate void WhoEventHandler(object sender, WhoEventArgs e); + public delegate void MotdEventHandler(object sender, MotdEventArgs e); + public delegate void PongEventHandler(object sender, PongEventArgs e); +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/EventArgs.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/EventArgs.cs new file mode 100644 index 0000000..d47fad4 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/EventArgs.cs @@ -0,0 +1,853 @@ +/* + * $Id: EventArgs.cs 280 2008-07-17 17:00:56Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/EventArgs.cs $ + * $Rev: 280 $ + * $Author: meebey $ + * $Date: 2008-07-17 19:00:56 +0200 (Thu, 17 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Collections.Specialized; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + public class ActionEventArgs : CtcpEventArgs + { + private string _ActionMessage; + + public string ActionMessage { + get { + return _ActionMessage; + } + } + + internal ActionEventArgs(IrcMessageData data, string actionmsg) : base(data, "ACTION", actionmsg) + { + _ActionMessage = actionmsg; + } + } + + /// + /// + /// + public class CtcpEventArgs : IrcEventArgs + { + private string _CtcpCommand; + private string _CtcpParameter; + + public string CtcpCommand { + get { + return _CtcpCommand; + } + } + + public string CtcpParameter { + get { + return _CtcpParameter; + } + } + + internal CtcpEventArgs(IrcMessageData data, string ctcpcmd, string ctcpparam) : base(data) + { + _CtcpCommand = ctcpcmd; + _CtcpParameter = ctcpparam; + } + } + + /// + /// + /// + public class ErrorEventArgs : IrcEventArgs + { + private string _ErrorMessage; + + public string ErrorMessage { + get { + return _ErrorMessage; + } + } + + internal ErrorEventArgs(IrcMessageData data, string errormsg) : base(data) + { + _ErrorMessage = errormsg; + } + } + + /// + /// + /// + public class MotdEventArgs : IrcEventArgs + { + private string _MotdMessage; + + public string MotdMessage { + get { + return _MotdMessage; + } + } + + internal MotdEventArgs(IrcMessageData data, string motdmsg) : base(data) + { + _MotdMessage = motdmsg; + } + } + + /// + /// + /// + public class PingEventArgs : IrcEventArgs + { + private string _PingData; + + public string PingData { + get { + return _PingData; + } + } + + internal PingEventArgs(IrcMessageData data, string pingdata) : base(data) + { + _PingData = pingdata; + } + } + + /// + /// + /// + public class PongEventArgs : IrcEventArgs + { + private TimeSpan _Lag; + + public TimeSpan Lag { + get { + return _Lag; + } + } + + internal PongEventArgs(IrcMessageData data, TimeSpan lag) : base(data) + { + _Lag = lag; + } + } + + /// + /// + /// + public class KickEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Whom; + private string _KickReason; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Whom { + get { + return _Whom; + } + } + + public string KickReason { + get { + return _KickReason; + } + } + + internal KickEventArgs(IrcMessageData data, string channel, string who, string whom, string kickreason) : base(data) + { + _Channel = channel; + _Who = who; + _Whom = whom; + _KickReason = kickreason; + } + } + + /// + /// + /// + public class JoinEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + internal JoinEventArgs(IrcMessageData data, string channel, string who) : base(data) + { + _Channel = channel; + _Who = who; + } + } + + /// + /// + /// + public class NamesEventArgs : IrcEventArgs + { + private string _Channel; + private string[] _UserList; + + public string Channel { + get { + return _Channel; + } + } + + public string[] UserList { + get { + return _UserList; + } + } + + internal NamesEventArgs(IrcMessageData data, string channel, string[] userlist) : base(data) + { + _Channel = channel; + _UserList = userlist; + } + } + + /// + /// + /// + public class ListEventArgs : IrcEventArgs + { + private ChannelInfo f_ListInfo; + + public ChannelInfo ListInfo { + get { + return f_ListInfo; + } + } + + internal ListEventArgs(IrcMessageData data, ChannelInfo listInfo) : base(data) + { + f_ListInfo = listInfo; + } + } + + /// + /// + /// + public class InviteEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + internal InviteEventArgs(IrcMessageData data, string channel, string who) : base(data) + { + _Channel = channel; + _Who = who; + } + } + + /// + /// + /// + public class PartEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _PartMessage; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string PartMessage { + get { + return _PartMessage; + } + } + + internal PartEventArgs(IrcMessageData data, string channel, string who, string partmessage) : base(data) + { + _Channel = channel; + _Who = who; + _PartMessage = partmessage; + } + } + + /// + /// + /// + public class WhoEventArgs : IrcEventArgs + { + private WhoInfo f_WhoInfo; + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public string Channel { + get { + return f_WhoInfo.Channel; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public string Nick { + get { + return f_WhoInfo.Nick; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public string Ident { + get { + return f_WhoInfo.Ident; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public string Host { + get { + return f_WhoInfo.Host; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public string Realname { + get { + return f_WhoInfo.Realname; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public bool IsAway { + get { + return f_WhoInfo.IsAway; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public bool IsOp { + get { + return f_WhoInfo.IsOp; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public bool IsVoice { + get { + return f_WhoInfo.IsVoice; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public bool IsIrcOp { + get { + return f_WhoInfo.IsIrcOp; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public string Server { + get { + return f_WhoInfo.Server; + } + } + + [Obsolete("Use WhoEventArgs.WhoInfo instead.")] + public int HopCount { + get { + return f_WhoInfo.HopCount; + } + } + + public WhoInfo WhoInfo { + get { + return f_WhoInfo; + } + } + + internal WhoEventArgs(IrcMessageData data, WhoInfo whoInfo) : base(data) + { + f_WhoInfo = whoInfo; + } + } + + /// + /// + /// + public class QuitEventArgs : IrcEventArgs + { + private string _Who; + private string _QuitMessage; + + public string Who { + get { + return _Who; + } + } + + public string QuitMessage { + get { + return _QuitMessage; + } + } + + internal QuitEventArgs(IrcMessageData data, string who, string quitmessage) : base(data) + { + _Who = who; + _QuitMessage = quitmessage; + } + } + + + /// + /// + /// + public class AwayEventArgs : IrcEventArgs + { + private string _Who; + private string _AwayMessage; + + public string Who { + get { + return _Who; + } + } + + public string AwayMessage{ + get { + return _AwayMessage; + } + } + + internal AwayEventArgs(IrcMessageData data, string who, string awaymessage) : base(data) + { + _Who = who; + _AwayMessage = awaymessage; + } + } + /// + /// + /// + public class NickChangeEventArgs : IrcEventArgs + { + private string _OldNickname; + private string _NewNickname; + + public string OldNickname { + get { + return _OldNickname; + } + } + + public string NewNickname { + get { + return _NewNickname; + } + } + + internal NickChangeEventArgs(IrcMessageData data, string oldnick, string newnick) : base(data) + { + _OldNickname = oldnick; + _NewNickname = newnick; + } + } + + /// + /// + /// + public class TopicEventArgs : IrcEventArgs + { + private string _Channel; + private string _Topic; + + public string Channel { + get { + return _Channel; + } + } + + public string Topic { + get { + return _Topic; + } + } + + internal TopicEventArgs(IrcMessageData data, string channel, string topic) : base(data) + { + _Channel = channel; + _Topic = topic; + } + } + + /// + /// + /// + public class TopicChangeEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _NewTopic; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string NewTopic { + get { + return _NewTopic; + } + } + + internal TopicChangeEventArgs(IrcMessageData data, string channel, string who, string newtopic) : base(data) + { + _Channel = channel; + _Who = who; + _NewTopic = newtopic; + } + } + + /// + /// + /// + public class BanEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Hostmask; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Hostmask { + get { + return _Hostmask; + } + } + + internal BanEventArgs(IrcMessageData data, string channel, string who, string hostmask) : base(data) + { + _Channel = channel; + _Who = who; + _Hostmask = hostmask; + } + } + + /// + /// + /// + public class UnbanEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Hostmask; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Hostmask { + get { + return _Hostmask; + } + } + + internal UnbanEventArgs(IrcMessageData data, string channel, string who, string hostmask) : base(data) + { + _Channel = channel; + _Who = who; + _Hostmask = hostmask; + } + } + + /// + /// + /// + public class OpEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Whom; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Whom { + get { + return _Whom; + } + } + + internal OpEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data) + { + _Channel = channel; + _Who = who; + _Whom = whom; + } + } + + /// + /// + /// + public class DeopEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Whom; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Whom { + get { + return _Whom; + } + } + + internal DeopEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data) + { + _Channel = channel; + _Who = who; + _Whom = whom; + } + } + + /// + /// + /// + public class HalfopEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Whom; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Whom { + get { + return _Whom; + } + } + + internal HalfopEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data) + { + _Channel = channel; + _Who = who; + _Whom = whom; + } + } + + /// + /// + /// + public class DehalfopEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Whom; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Whom { + get { + return _Whom; + } + } + + internal DehalfopEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data) + { + _Channel = channel; + _Who = who; + _Whom = whom; + } + } + + /// + /// + /// + public class VoiceEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Whom; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Whom { + get { + return _Whom; + } + } + + internal VoiceEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data) + { + _Channel = channel; + _Who = who; + _Whom = whom; + } + } + + /// + /// + /// + public class DevoiceEventArgs : IrcEventArgs + { + private string _Channel; + private string _Who; + private string _Whom; + + public string Channel { + get { + return _Channel; + } + } + + public string Who { + get { + return _Who; + } + } + + public string Whom { + get { + return _Whom; + } + } + + internal DevoiceEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data) + { + _Channel = channel; + _Who = who; + _Whom = whom; + } + } + +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcClient.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcClient.cs new file mode 100644 index 0000000..755ab7d --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcClient.cs @@ -0,0 +1,2620 @@ +/* + * $Id: IrcClient.cs 280 2008-07-17 17:00:56Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/IrcClient.cs $ + * $Rev: 280 $ + * $Author: meebey $ + * $Date: 2008-07-17 19:00:56 +0200 (Thu, 17 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2008 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Text.RegularExpressions; +using System.Threading; +using System.Collections; +using System.Collections.Generic; +using System.Collections.Specialized; + +namespace Meebey.SmartIrc4net +{ + /// + /// This layer is an event driven high-level API with all features you could need for IRC programming. + /// + /// + public class IrcClient : IrcCommands + { + private string _Nickname = string.Empty; + private string[] _NicknameList; + private int _CurrentNickname; + private string _Realname = string.Empty; + private string _Usermode = string.Empty; + private int _IUsermode; + private string _Username = string.Empty; + private string _Password = string.Empty; + private bool _IsAway; + private string _CtcpVersion; + private bool _ActiveChannelSyncing; + private bool _PassiveChannelSyncing; + private bool _AutoJoinOnInvite; + private bool _AutoRejoin; + private StringDictionary _AutoRejoinChannels = new StringDictionary(); + private bool _AutoRejoinChannelsWithKeys; + private bool _AutoRejoinOnKick; + private bool _AutoRelogin; + private bool _AutoNickHandling = true; + private bool _SupportNonRfc; + private bool _SupportNonRfcLocked; + private StringCollection _Motd = new StringCollection(); + private bool _MotdReceived; + private Array _ReplyCodes = Enum.GetValues(typeof(ReplyCode)); + private StringCollection _JoinedChannels = new StringCollection(); + private Hashtable _Channels = Hashtable.Synchronized(new Hashtable(new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer())); + private Hashtable _IrcUsers = Hashtable.Synchronized(new Hashtable(new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer())); + private List _ChannelList; + private Object _ChannelListSyncRoot = new Object(); + private AutoResetEvent _ChannelListReceivedEvent; + private List _WhoList; + private Object _WhoListSyncRoot = new Object(); + private AutoResetEvent _WhoListReceivedEvent; + private List _BanList; + private Object _BanListSyncRoot = new Object(); + private AutoResetEvent _BanListReceivedEvent; + private static Regex _ReplyCodeRegex = new Regex("^:[^ ]+? ([0-9]{3}) .+$", RegexOptions.Compiled); + private static Regex _PingRegex = new Regex("^PING :.*", RegexOptions.Compiled); + private static Regex _ErrorRegex = new Regex("^ERROR :.*", RegexOptions.Compiled); + private static Regex _ActionRegex = new Regex("^:.*? PRIVMSG (.).* :"+"\x1"+"ACTION .*"+"\x1"+"$", RegexOptions.Compiled); + private static Regex _CtcpRequestRegex = new Regex("^:.*? PRIVMSG .* :"+"\x1"+".*"+"\x1"+"$", RegexOptions.Compiled); + private static Regex _MessageRegex = new Regex("^:.*? PRIVMSG (.).* :.*$", RegexOptions.Compiled); + private static Regex _CtcpReplyRegex = new Regex("^:.*? NOTICE .* :"+"\x1"+".*"+"\x1"+"$", RegexOptions.Compiled); + private static Regex _NoticeRegex = new Regex("^:.*? NOTICE (.).* :.*$", RegexOptions.Compiled); + private static Regex _InviteRegex = new Regex("^:.*? INVITE .* .*$", RegexOptions.Compiled); + private static Regex _JoinRegex = new Regex("^:.*? JOIN .*$", RegexOptions.Compiled); + private static Regex _TopicRegex = new Regex("^:.*? TOPIC .* :.*$", RegexOptions.Compiled); + private static Regex _NickRegex = new Regex("^:.*? NICK .*$", RegexOptions.Compiled); + private static Regex _KickRegex = new Regex("^:.*? KICK .* .*$", RegexOptions.Compiled); + private static Regex _PartRegex = new Regex("^:.*? PART .*$", RegexOptions.Compiled); + private static Regex _ModeRegex = new Regex("^:.*? MODE (.*) .*$", RegexOptions.Compiled); + private static Regex _QuitRegex = new Regex("^:.*? QUIT :.*$", RegexOptions.Compiled); + + public event EventHandler OnRegistered; + public event PingEventHandler OnPing; + public event PongEventHandler OnPong; + public event IrcEventHandler OnRawMessage; + public event ErrorEventHandler OnError; + public event IrcEventHandler OnErrorMessage; + public event JoinEventHandler OnJoin; + public event NamesEventHandler OnNames; + public event ListEventHandler OnList; + public event PartEventHandler OnPart; + public event QuitEventHandler OnQuit; + public event KickEventHandler OnKick; + public event AwayEventHandler OnAway; + public event IrcEventHandler OnUnAway; + public event IrcEventHandler OnNowAway; + public event InviteEventHandler OnInvite; + public event BanEventHandler OnBan; + public event UnbanEventHandler OnUnban; + public event OpEventHandler OnOp; + public event DeopEventHandler OnDeop; + public event HalfopEventHandler OnHalfop; + public event DehalfopEventHandler OnDehalfop; + public event VoiceEventHandler OnVoice; + public event DevoiceEventHandler OnDevoice; + public event WhoEventHandler OnWho; + public event MotdEventHandler OnMotd; + public event TopicEventHandler OnTopic; + public event TopicChangeEventHandler OnTopicChange; + public event NickChangeEventHandler OnNickChange; + public event IrcEventHandler OnModeChange; + public event IrcEventHandler OnUserModeChange; + public event IrcEventHandler OnChannelModeChange; + public event IrcEventHandler OnChannelMessage; + public event ActionEventHandler OnChannelAction; + public event IrcEventHandler OnChannelNotice; + public event IrcEventHandler OnChannelActiveSynced; + public event IrcEventHandler OnChannelPassiveSynced; + public event IrcEventHandler OnQueryMessage; + public event ActionEventHandler OnQueryAction; + public event IrcEventHandler OnQueryNotice; + public event CtcpEventHandler OnCtcpRequest; + public event CtcpEventHandler OnCtcpReply; + + /// + /// Enables/disables the active channel sync feature. + /// Default: false + /// + public bool ActiveChannelSyncing { + get { + return _ActiveChannelSyncing; + } + set { +#if LOG4NET + if (value) { + Logger.ChannelSyncing.Info("Active channel syncing enabled"); + } else { + Logger.ChannelSyncing.Info("Active channel syncing disabled"); + } +#endif + _ActiveChannelSyncing = value; + } + } + + /// + /// Enables/disables the passive channel sync feature. Not implemented yet! + /// + public bool PassiveChannelSyncing { + get { + return _PassiveChannelSyncing; + } + /* + set { +#if LOG4NET + if (value) { + Logger.ChannelSyncing.Info("Passive channel syncing enabled"); + } else { + Logger.ChannelSyncing.Info("Passive channel syncing disabled"); + } +#endif + _PassiveChannelSyncing = value; + } + */ + } + + /// + /// Sets the ctcp version that should be replied on ctcp version request. + /// + public string CtcpVersion { + get { + return _CtcpVersion; + } + set { + _CtcpVersion = value; + } + } + + /// + /// Enables/disables auto joining of channels when invited. + /// Default: false + /// + public bool AutoJoinOnInvite { + get { + return _AutoJoinOnInvite; + } + set { +#if LOG4NET + if (value) { + Logger.ChannelSyncing.Info("AutoJoinOnInvite enabled"); + } else { + Logger.ChannelSyncing.Info("AutoJoinOnInvite disabled"); + } +#endif + _AutoJoinOnInvite = value; + } + } + + /// + /// Enables/disables automatic rejoining of channels when a connection to the server is lost. + /// Default: false + /// + public bool AutoRejoin { + get { + return _AutoRejoin; + } + set { +#if LOG4NET + if (value) { + Logger.ChannelSyncing.Info("AutoRejoin enabled"); + } else { + Logger.ChannelSyncing.Info("AutoRejoin disabled"); + } +#endif + _AutoRejoin = value; + } + } + + /// + /// Enables/disables auto rejoining of channels when kicked. + /// Default: false + /// + public bool AutoRejoinOnKick { + get { + return _AutoRejoinOnKick; + } + set { +#if LOG4NET + if (value) { + Logger.ChannelSyncing.Info("AutoRejoinOnKick enabled"); + } else { + Logger.ChannelSyncing.Info("AutoRejoinOnKick disabled"); + } +#endif + _AutoRejoinOnKick = value; + } + } + + /// + /// Enables/disables auto relogin to the server after a reconnect. + /// Default: false + /// + public bool AutoRelogin { + get { + return _AutoRelogin; + } + set { +#if LOG4NET + if (value) { + Logger.ChannelSyncing.Info("AutoRelogin enabled"); + } else { + Logger.ChannelSyncing.Info("AutoRelogin disabled"); + } +#endif + _AutoRelogin = value; + } + } + + /// + /// Enables/disables auto nick handling on nick collisions + /// Default: true + /// + public bool AutoNickHandling { + get { + return _AutoNickHandling; + } + set { +#if LOG4NET + if (value) { + Logger.ChannelSyncing.Info("AutoNickHandling enabled"); + } else { + Logger.ChannelSyncing.Info("AutoNickHandling disabled"); + } +#endif + _AutoNickHandling = value; + } + } + + /// + /// Enables/disables support for non rfc features. + /// Default: false + /// + public bool SupportNonRfc { + get { + return _SupportNonRfc; + } + set { + if (_SupportNonRfcLocked) { + return; + } +#if LOG4NET + + if (value) { + Logger.ChannelSyncing.Info("SupportNonRfc enabled"); + } else { + Logger.ChannelSyncing.Info("SupportNonRfc disabled"); + } +#endif + _SupportNonRfc = value; + } + } + + /// + /// Gets the nickname of us. + /// + public string Nickname { + get { + return _Nickname; + } + } + + /// + /// Gets the list of nicknames of us. + /// + public string[] NicknameList { + get { + return _NicknameList; + } + } + + /// + /// Gets the supposed real name of us. + /// + public string Realname { + get { + return _Realname; + } + } + + /// + /// Gets the username for the server. + /// + /// + /// System username is set by default + /// + public string Username { + get { + return _Username; + } + } + + /// + /// Gets the alphanumeric mode mask of us. + /// + public string Usermode { + get { + return _Usermode; + } + } + + /// + /// Gets the numeric mode mask of us. + /// + public int IUsermode { + get { + return _IUsermode; + } + } + + /// + /// Returns if we are away on this connection + /// + public bool IsAway { + get { + return _IsAway; + } + } + + /// + /// Gets the password for the server. + /// + public string Password { + get { + return _Password; + } + } + + /// + /// Gets the list of channels we are joined. + /// + public StringCollection JoinedChannels { + get { + return _JoinedChannels; + } + } + + /// + /// Gets the server message of the day. + /// + public StringCollection Motd { + get { + return _Motd; + } + } + + public object BanListSyncRoot { + get { + return _BanListSyncRoot; + } + } + + /// + /// This class manages the connection server and provides access to all the objects needed to send and receive messages. + /// + public IrcClient() + { +#if LOG4NET + Logger.Main.Debug("IrcClient created"); +#endif + OnReadLine += new ReadLineEventHandler(_Worker); + OnDisconnected += new EventHandler(_OnDisconnected); + OnConnectionError += new EventHandler(_OnConnectionError); + } + +#if LOG4NET + ~IrcClient() + { + Logger.Main.Debug("IrcClient destroyed"); + } +#endif + + /// + /// Connection parameters required to establish an server connection. + /// + /// The list of server hostnames. + /// The TCP port the server listens on. + public new void Connect(string[] addresslist, int port) + { + _SupportNonRfcLocked = true; + base.Connect(addresslist, port); + } + + /// + /// Reconnects to the current server. + /// + /// If the login data should be sent, after successful connect. + /// If the channels should be rejoined, after successful connect. + public void Reconnect(bool login, bool channels) + { + if (channels) { + _StoreChannelsToRejoin(); + } + base.Reconnect(); + if (login) { + //reset the nick to the original nicklist + _CurrentNickname = 0; + Login(_NicknameList, Realname, IUsermode, Username, Password); + } + if (channels) { + _RejoinChannels(); + } + } + + /// If the login data should be sent, after successful connect. + public void Reconnect(bool login) + { + Reconnect(login, true); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users list of 'nick' names which may NOT contain spaces + /// The users 'real' name which may contain space characters + /// A numeric mode parameter. + /// + /// Set to 0 to recieve wallops and be invisible. + /// Set to 4 to be invisible and not receive wallops. + /// + /// + /// The user's machine logon name + /// The optional password can and MUST be set before any attempt to register + /// the connection is made. + public void Login(string[] nicklist, string realname, int usermode, string username, string password) + { +#if LOG4NET + Logger.Connection.Info("logging in"); +#endif + _NicknameList = (string[])nicklist.Clone(); + // here we set the nickname which we will try first + _Nickname = _NicknameList[0].Replace(" ", ""); + _Realname = realname; + _IUsermode = usermode; + + if (username != null && username.Length > 0) { + _Username = username.Replace(" ", ""); + } else { + _Username = Environment.UserName.Replace(" ", ""); + } + + if (password != null && password.Length > 0) { + _Password = password; + RfcPass(Password, Priority.Critical); + } + + RfcNick(Nickname, Priority.Critical); + RfcUser(Username, IUsermode, Realname, Priority.Critical); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users list of 'nick' names which may NOT contain spaces + /// The users 'real' name which may contain space characters + /// A numeric mode parameter. + /// Set to 0 to recieve wallops and be invisible. + /// Set to 4 to be invisible and not receive wallops. + /// The user's machine logon name + public void Login(string[] nicklist, string realname, int usermode, string username) + { + Login(nicklist, realname, usermode, username, ""); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users list of 'nick' names which may NOT contain spaces + /// The users 'real' name which may contain space characters + /// A numeric mode parameter. + /// Set to 0 to recieve wallops and be invisible. + /// Set to 4 to be invisible and not receive wallops. + public void Login(string[] nicklist, string realname, int usermode) + { + Login(nicklist, realname, usermode, "", ""); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users list of 'nick' names which may NOT contain spaces + /// The users 'real' name which may contain space characters + public void Login(string[] nicklist, string realname) + { + Login(nicklist, realname, 0, "", ""); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users 'nick' name which may NOT contain spaces + /// The users 'real' name which may contain space characters + /// A numeric mode parameter. + /// Set to 0 to recieve wallops and be invisible. + /// Set to 4 to be invisible and not receive wallops. + /// The user's machine logon name + /// The optional password can and MUST be set before any attempt to register + /// the connection is made. + public void Login(string nick, string realname, int usermode, string username, string password) + { + Login(new string[] {nick, nick+"_", nick+"__"}, realname, usermode, username, password); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users 'nick' name which may NOT contain spaces + /// The users 'real' name which may contain space characters + /// A numeric mode parameter. + /// Set to 0 to recieve wallops and be invisible. + /// Set to 4 to be invisible and not receive wallops. + /// The user's machine logon name + public void Login(string nick, string realname, int usermode, string username) + { + Login(new string[] {nick, nick+"_", nick+"__"}, realname, usermode, username, ""); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users 'nick' name which may NOT contain spaces + /// The users 'real' name which may contain space characters + /// A numeric mode parameter. + /// Set to 0 to recieve wallops and be invisible. + /// Set to 4 to be invisible and not receive wallops. + public void Login(string nick, string realname, int usermode) + { + Login(new string[] {nick, nick+"_", nick+"__"}, realname, usermode, "", ""); + } + + /// + /// Login parameters required identify with server connection + /// + /// Login is used at the beginning of connection to specify the username, hostname and realname of a new user. + /// The users 'nick' name which may NOT contain spaces + /// The users 'real' name which may contain space characters + public void Login(string nick, string realname) + { + Login(new string[] {nick, nick+"_", nick+"__"}, realname, 0, "", ""); + } + + /// + /// Determine if a specifier nickname is you + /// + /// The users 'nick' name which may NOT contain spaces + /// True if nickname belongs to you + public bool IsMe(string nickname) + { + return (Nickname == nickname); + } + + /// + /// Determines if your nickname can be found in a specified channel + /// + /// The name of the channel you wish to query + /// True if you are found in channel + public bool IsJoined(string channelname) + { + return IsJoined(channelname, Nickname); + } + + /// + /// Determine if a specified nickname can be found in a specified channel + /// + /// The name of the channel you wish to query + /// The users 'nick' name which may NOT contain spaces + /// True if nickname is found in channel + public bool IsJoined(string channelname, string nickname) + { + if (channelname == null) { + throw new System.ArgumentNullException("channelname"); + } + + if (nickname == null) { + throw new System.ArgumentNullException("nickname"); + } + + Channel channel = GetChannel(channelname); + if (channel != null && + channel.UnsafeUsers != null && + channel.UnsafeUsers.ContainsKey(nickname)) { + return true; + } + + return false; + } + + /// + /// Returns user information + /// + /// The users 'nick' name which may NOT contain spaces + /// IrcUser object of requested nickname + public IrcUser GetIrcUser(string nickname) + { + if (nickname == null) { + throw new System.ArgumentNullException("nickname"); + } + + return (IrcUser)_IrcUsers[nickname]; + } + + /// + /// Returns extended user information including channel information + /// + /// The name of the channel you wish to query + /// The users 'nick' name which may NOT contain spaces + /// ChannelUser object of requested channelname/nickname + public ChannelUser GetChannelUser(string channelname, string nickname) + { + if (channelname == null) { + throw new System.ArgumentNullException("channel"); + } + + if (nickname == null) { + throw new System.ArgumentNullException("nickname"); + } + + Channel channel = GetChannel(channelname); + if (channel != null) { + return (ChannelUser)channel.UnsafeUsers[nickname]; + } else { + return null; + } + } + + /// + /// + /// + /// The name of the channel you wish to query + /// Channel object of requested channel + public Channel GetChannel(string channelname) + { + if (channelname == null) { + throw new System.ArgumentNullException("channelname"); + } + + return (Channel)_Channels[channelname]; + } + + /// + /// Gets a list of all joined channels on server + /// + /// String array of all joined channel names + public string[] GetChannels() + { + string[] channels = new string[_Channels.Values.Count]; + int i = 0; + foreach (Channel channel in _Channels.Values) { + channels[i++] = channel.Name; + } + + return channels; + } + + /// + /// Fetches a fresh list of all available channels that match the passed mask + /// + /// List of ListInfo + public IList GetChannelList(string mask) + { + List list = new List(); + lock (_ChannelListSyncRoot) { + _ChannelList = list; + _ChannelListReceivedEvent = new AutoResetEvent(false); + + // request list + RfcList(mask); + // wait till we have the complete list + _ChannelListReceivedEvent.WaitOne(); + + _ChannelListReceivedEvent = null; + _ChannelList = null; + } + + return list; + } + + /// + /// Fetches a fresh list of users that matches the passed mask + /// + /// List of ListInfo + public IList GetWhoList(string mask) + { + List list = new List(); + lock (_WhoListSyncRoot) { + _WhoList = list; + _WhoListReceivedEvent = new AutoResetEvent(false); + + // request list + RfcWho(mask); + // wait till we have the complete list + _WhoListReceivedEvent.WaitOne(); + + _WhoListReceivedEvent = null; + _WhoList = null; + } + + return list; + } + + /// + /// Fetches a fresh ban list of the specified channel + /// + /// List of ListInfo + public IList GetBanList(string channel) + { + List list = new List(); + lock (_BanListSyncRoot) { + _BanList = list; + _BanListReceivedEvent = new AutoResetEvent(false); + + // request list + Ban(channel); + // wait till we have the complete list + _BanListReceivedEvent.WaitOne(); + + _BanListReceivedEvent = null; + _BanList = null; + } + + return list; + } + + public IrcMessageData MessageParser(string rawline) + { + string line; + string[] linear; + string messagecode; + string from; + string nick = null; + string ident = null; + string host = null; + string channel = null; + string message = null; + ReceiveType type; + ReplyCode replycode; + int exclamationpos; + int atpos; + int colonpos; + + if (rawline[0] == ':') { + line = rawline.Substring(1); + } else { + line = rawline; + } + + linear = line.Split(new char[] {' '}); + + // conform to RFC 2812 + from = linear[0]; + messagecode = linear[1]; + exclamationpos = from.IndexOf("!"); + atpos = from.IndexOf("@"); + colonpos = line.IndexOf(" :"); + if (colonpos != -1) { + // we want the exact position of ":" not beginning from the space + colonpos += 1; + } + if (exclamationpos != -1) { + nick = from.Substring(0, exclamationpos); + } + if ((atpos != -1) && + (exclamationpos != -1)) { + ident = from.Substring(exclamationpos+1, (atpos - exclamationpos)-1); + } + if (atpos != -1) { + host = from.Substring(atpos+1); + } + + try { + replycode = (ReplyCode)int.Parse(messagecode); + } catch (FormatException) { + replycode = ReplyCode.Null; + } + type = _GetMessageType(rawline); + if (colonpos != -1) { + message = line.Substring(colonpos + 1); + } + + switch (type) { + case ReceiveType.Join: + case ReceiveType.Kick: + case ReceiveType.Part: + case ReceiveType.TopicChange: + case ReceiveType.ChannelModeChange: + case ReceiveType.ChannelMessage: + case ReceiveType.ChannelAction: + case ReceiveType.ChannelNotice: + channel = linear[2]; + break; + case ReceiveType.Who: + case ReceiveType.Topic: + case ReceiveType.Invite: + case ReceiveType.BanList: + case ReceiveType.ChannelMode: + channel = linear[3]; + break; + case ReceiveType.Name: + channel = linear[4]; + break; + } + + switch (replycode) { + case ReplyCode.List: + case ReplyCode.ListEnd: + case ReplyCode.ErrorNoChannelModes: + channel = linear[3]; + break; + } + + if ((channel != null) && + (channel[0] == ':')) { + channel = channel.Substring(1); + } + + IrcMessageData data; + data = new IrcMessageData(this, from, nick, ident, host, channel, message, rawline, type, replycode); +#if LOG4NET + Logger.MessageParser.Debug("IrcMessageData "+ + "nick: '"+data.Nick+"' "+ + "ident: '"+data.Ident+"' "+ + "host: '"+data.Host+"' "+ + "type: '"+data.Type.ToString()+"' "+ + "from: '"+data.From+"' "+ + "channel: '"+data.Channel+"' "+ + "message: '"+data.Message+"' " + ); +#endif + return data; + } + + protected virtual IrcUser CreateIrcUser(string nickname) + { + return new IrcUser(nickname, this); + } + + protected virtual Channel CreateChannel(string name) + { + if (_SupportNonRfc) { + return new NonRfcChannel(name); + } else { + return new Channel(name); + } + } + + protected virtual ChannelUser CreateChannelUser(string channel, IrcUser ircUser) + { + if (_SupportNonRfc) { + return new NonRfcChannelUser(channel, ircUser); + } else { + return new ChannelUser(channel, ircUser); + } + } + + private void _Worker(object sender, ReadLineEventArgs e) + { + // lets see if we have events or internal messagehandler for it + _HandleEvents(MessageParser(e.Line)); + } + + private void _OnDisconnected(object sender, EventArgs e) + { + if (AutoRejoin) { + _StoreChannelsToRejoin(); + } + _SyncingCleanup(); + } + + private void _OnConnectionError(object sender, EventArgs e) + { + try { + // AutoReconnect is handled in IrcConnection._OnConnectionError + if (AutoReconnect && AutoRelogin) { + Login(_NicknameList, Realname, IUsermode, Username, Password); + } + if (AutoReconnect && AutoRejoin) { + _RejoinChannels(); + } + } catch (NotConnectedException) { + // HACK: this is hacky, we don't know if the Reconnect was actually successful + // means sending IRC commands without a connection throws NotConnectedExceptions + } + } + + private void _StoreChannelsToRejoin() + { +#if LOG4NET + Logger.Connection.Info("Storing channels for rejoin..."); +#endif + _AutoRejoinChannels.Clear(); + if (ActiveChannelSyncing || PassiveChannelSyncing) { + // store the key using channel sync + foreach (Channel channel in _Channels.Values) { + if (channel.Key.Length > 0) { + _AutoRejoinChannels.Add(channel.Name, channel.Key); + _AutoRejoinChannelsWithKeys = true; + } else { + _AutoRejoinChannels.Add(channel.Name, "nokey"); + } + } + } else { + foreach (string channel in _JoinedChannels) { + _AutoRejoinChannels.Add(channel, "nokey"); + } + } + } + + private void _RejoinChannels() + { +#if LOG4NET + Logger.Connection.Info("Rejoining channels..."); +#endif + int chan_count = _AutoRejoinChannels.Count; + + string[] names = new string[chan_count]; + _AutoRejoinChannels.Keys.CopyTo(names, 0); + + if (_AutoRejoinChannelsWithKeys) { + string[] keys = new string[chan_count]; + _AutoRejoinChannels.Values.CopyTo(keys, 0); + + RfcJoin(names, keys, Priority.High); + } else { + RfcJoin(names, Priority.High); + } + + _AutoRejoinChannelsWithKeys = false; + _AutoRejoinChannels.Clear(); + } + + private void _SyncingCleanup() + { + // lets clean it baby, powered by Mr. Proper +#if LOG4NET + Logger.ChannelSyncing.Debug("Mr. Proper action, cleaning good..."); +#endif + _JoinedChannels.Clear(); + if (ActiveChannelSyncing) { + _Channels.Clear(); + _IrcUsers.Clear(); + } + + _IsAway = false; + + _MotdReceived = false; + _Motd.Clear(); + } + + /// + /// + /// + private string _NextNickname() + { + _CurrentNickname++; + //if we reach the end stay there + if (_CurrentNickname >= _NicknameList.Length) { + _CurrentNickname--; + } + return NicknameList[_CurrentNickname]; + } + + private ReceiveType _GetMessageType(string rawline) + { + Match found = _ReplyCodeRegex.Match(rawline); + if (found.Success) { + string code = found.Groups[1].Value; + ReplyCode replycode = (ReplyCode)int.Parse(code); + + // check if this replycode is known in the RFC + if (Array.IndexOf(_ReplyCodes, replycode) == -1) { +#if LOG4NET + Logger.MessageTypes.Warn("This IRC server ("+Address+") doesn't conform to the RFC 2812! ignoring unrecognized replycode '"+replycode+"'"); +#endif + return ReceiveType.Unknown; + } + + switch (replycode) { + case ReplyCode.Welcome: + case ReplyCode.YourHost: + case ReplyCode.Created: + case ReplyCode.MyInfo: + case ReplyCode.Bounce: + return ReceiveType.Login; + case ReplyCode.LuserClient: + case ReplyCode.LuserOp: + case ReplyCode.LuserUnknown: + case ReplyCode.LuserMe: + case ReplyCode.LuserChannels: + return ReceiveType.Info; + case ReplyCode.MotdStart: + case ReplyCode.Motd: + case ReplyCode.EndOfMotd: + return ReceiveType.Motd; + case ReplyCode.NamesReply: + case ReplyCode.EndOfNames: + return ReceiveType.Name; + case ReplyCode.WhoReply: + case ReplyCode.EndOfWho: + return ReceiveType.Who; + case ReplyCode.ListStart: + case ReplyCode.List: + case ReplyCode.ListEnd: + return ReceiveType.List; + case ReplyCode.BanList: + case ReplyCode.EndOfBanList: + return ReceiveType.BanList; + case ReplyCode.Topic: + case ReplyCode.NoTopic: + return ReceiveType.Topic; + case ReplyCode.WhoIsUser: + case ReplyCode.WhoIsServer: + case ReplyCode.WhoIsOperator: + case ReplyCode.WhoIsIdle: + case ReplyCode.WhoIsChannels: + case ReplyCode.EndOfWhoIs: + return ReceiveType.WhoIs; + case ReplyCode.WhoWasUser: + case ReplyCode.EndOfWhoWas: + return ReceiveType.WhoWas; + case ReplyCode.UserModeIs: + return ReceiveType.UserMode; + case ReplyCode.ChannelModeIs: + return ReceiveType.ChannelMode; + default: + if (((int)replycode >= 400) && + ((int)replycode <= 599)) { + return ReceiveType.ErrorMessage; + } else { +#if LOG4NET + Logger.MessageTypes.Warn("replycode unknown ("+code+"): \""+rawline+"\""); +#endif + return ReceiveType.Unknown; + } + } + } + + found = _PingRegex.Match(rawline); + if (found.Success) { + return ReceiveType.Unknown; + } + + found = _ErrorRegex.Match(rawline); + if (found.Success) { + return ReceiveType.Error; + } + + found = _ActionRegex.Match(rawline); + if (found.Success) { + switch (found.Groups[1].Value) { + case "#": + case "!": + case "&": + case "+": + return ReceiveType.ChannelAction; + default: + return ReceiveType.QueryAction; + } + } + + found = _CtcpRequestRegex.Match(rawline); + if (found.Success) { + return ReceiveType.CtcpRequest; + } + + found = _MessageRegex.Match(rawline); + if (found.Success) { + switch (found.Groups[1].Value) { + case "#": + case "!": + case "&": + case "+": + return ReceiveType.ChannelMessage; + default: + return ReceiveType.QueryMessage; + } + } + + found = _CtcpReplyRegex.Match(rawline); + if (found.Success) { + return ReceiveType.CtcpReply; + } + + found = _NoticeRegex.Match(rawline); + if (found.Success) { + switch (found.Groups[1].Value) { + case "#": + case "!": + case "&": + case "+": + return ReceiveType.ChannelNotice; + default: + return ReceiveType.QueryNotice; + } + } + + found = _InviteRegex.Match(rawline); + if (found.Success) { + return ReceiveType.Invite; + } + + found = _JoinRegex.Match(rawline); + if (found.Success) { + return ReceiveType.Join; + } + + found = _TopicRegex.Match(rawline); + if (found.Success) { + return ReceiveType.TopicChange; + } + + found = _NickRegex.Match(rawline); + if (found.Success) { + return ReceiveType.NickChange; + } + + found = _KickRegex.Match(rawline); + if (found.Success) { + return ReceiveType.Kick; + } + + found = _PartRegex.Match(rawline); + if (found.Success) { + return ReceiveType.Part; + } + + found = _ModeRegex.Match(rawline); + if (found.Success) { + if (found.Groups[1].Value == _Nickname) { + return ReceiveType.UserModeChange; + } else { + return ReceiveType.ChannelModeChange; + } + } + + found = _QuitRegex.Match(rawline); + if (found.Success) { + return ReceiveType.Quit; + } + +#if LOG4NET + Logger.MessageTypes.Warn("messagetype unknown: \""+rawline+"\""); +#endif + return ReceiveType.Unknown; + } + + private void _HandleEvents(IrcMessageData ircdata) + { + if (OnRawMessage != null) { + OnRawMessage(this, new IrcEventArgs(ircdata)); + } + + string code; + // special IRC messages + code = ircdata.RawMessageArray[0]; + switch (code) { + case "PING": + _Event_PING(ircdata); + break; + case "ERROR": + _Event_ERROR(ircdata); + break; + } + + code = ircdata.RawMessageArray[1]; + switch (code) { + case "PRIVMSG": + _Event_PRIVMSG(ircdata); + break; + case "NOTICE": + _Event_NOTICE(ircdata); + break; + case "JOIN": + _Event_JOIN(ircdata); + break; + case "PART": + _Event_PART(ircdata); + break; + case "KICK": + _Event_KICK(ircdata); + break; + case "QUIT": + _Event_QUIT(ircdata); + break; + case "TOPIC": + _Event_TOPIC(ircdata); + break; + case "NICK": + _Event_NICK(ircdata); + break; + case "INVITE": + _Event_INVITE(ircdata); + break; + case "MODE": + _Event_MODE(ircdata); + break; + case "PONG": + _Event_PONG(ircdata); + break; + } + + if (ircdata.ReplyCode != ReplyCode.Null) { + switch (ircdata.ReplyCode) { + case ReplyCode.Welcome: + _Event_RPL_WELCOME(ircdata); + break; + case ReplyCode.Topic: + _Event_RPL_TOPIC(ircdata); + break; + case ReplyCode.NoTopic: + _Event_RPL_NOTOPIC(ircdata); + break; + case ReplyCode.NamesReply: + _Event_RPL_NAMREPLY(ircdata); + break; + case ReplyCode.EndOfNames: + _Event_RPL_ENDOFNAMES(ircdata); + break; + case ReplyCode.List: + _Event_RPL_LIST(ircdata); + break; + case ReplyCode.ListEnd: + _Event_RPL_LISTEND(ircdata); + break; + case ReplyCode.WhoReply: + _Event_RPL_WHOREPLY(ircdata); + break; + case ReplyCode.EndOfWho: + _Event_RPL_ENDOFWHO(ircdata); + break; + case ReplyCode.ChannelModeIs: + _Event_RPL_CHANNELMODEIS(ircdata); + break; + case ReplyCode.BanList: + _Event_RPL_BANLIST(ircdata); + break; + case ReplyCode.EndOfBanList: + _Event_RPL_ENDOFBANLIST(ircdata); + break; + case ReplyCode.ErrorNoChannelModes: + _Event_ERR_NOCHANMODES(ircdata); + break; + case ReplyCode.Motd: + _Event_RPL_MOTD(ircdata); + break; + case ReplyCode.EndOfMotd: + _Event_RPL_ENDOFMOTD(ircdata); + break; + case ReplyCode.Away: + _Event_RPL_AWAY(ircdata); + break; + case ReplyCode.UnAway: + _Event_RPL_UNAWAY(ircdata); + break; + case ReplyCode.NowAway: + _Event_RPL_NOWAWAY(ircdata); + break; + case ReplyCode.TryAgain: + _Event_RPL_TRYAGAIN(ircdata); + break; + case ReplyCode.ErrorNicknameInUse: + _Event_ERR_NICKNAMEINUSE(ircdata); + break; + } + } + + if (ircdata.Type == ReceiveType.ErrorMessage) { + _Event_ERR(ircdata); + } + } + + /// + /// Removes a specified user from all channel lists + /// + /// The users 'nick' name which may NOT contain spaces + private bool _RemoveIrcUser(string nickname) + { + if (GetIrcUser(nickname).JoinedChannels.Length == 0) { + // he is nowhere else, lets kill him + _IrcUsers.Remove(nickname); + return true; + } + + return false; + } + + /// + /// Removes a specified user from a specified channel list + /// + /// The name of the channel you wish to query + /// The users 'nick' name which may NOT contain spaces + private void _RemoveChannelUser(string channelname, string nickname) + { + Channel chan = GetChannel(channelname); + chan.UnsafeUsers.Remove(nickname); + chan.UnsafeOps.Remove(nickname); + chan.UnsafeVoices.Remove(nickname); + if (SupportNonRfc) { + NonRfcChannel nchan = (NonRfcChannel)chan; + nchan.UnsafeHalfops.Remove(nickname); + } + } + + /// + /// + /// + /// Message data containing channel mode information + /// Channel mode + /// List of supplied paramaters + private void _InterpretChannelMode(IrcMessageData ircdata, string mode, string parameter) + { + string[] parameters = parameter.Split(new char[] {' '}); + bool add = false; + bool remove = false; + int modelength = mode.Length; + string temp; + Channel channel = null; + if (ActiveChannelSyncing) { + channel = GetChannel(ircdata.Channel); + } + IEnumerator parametersEnumerator = parameters.GetEnumerator(); + // bring the enumerator to the 1. element + parametersEnumerator.MoveNext(); + for (int i = 0; i < modelength; i++) { + switch(mode[i]) { + case '-': + add = false; + remove = true; + break; + case '+': + add = true; + remove = false; + break; + case 'o': + temp = (string)parametersEnumerator.Current; + parametersEnumerator.MoveNext(); + + if (add) { + if (ActiveChannelSyncing) { + // sanity check + if (GetChannelUser(ircdata.Channel, temp) != null) { + // update the op list + try { + channel.UnsafeOps.Add(temp, GetIrcUser(temp)); +#if LOG4NET + Logger.ChannelSyncing.Debug("added op: "+temp+" to: "+ircdata.Channel); +#endif + } catch (ArgumentException) { +#if LOG4NET + Logger.ChannelSyncing.Debug("duplicate op: "+temp+" in: "+ircdata.Channel+" not added"); +#endif + } + + // update the user op status + ChannelUser cuser = GetChannelUser(ircdata.Channel, temp); + cuser.IsOp = true; +#if LOG4NET + Logger.ChannelSyncing.Debug("set op status: " + temp + " for: "+ircdata.Channel); +#endif + } else { +#if LOG4NET + Logger.ChannelSyncing.Error("_InterpretChannelMode(): GetChannelUser(" + ircdata.Channel + "," + temp + ") returned null! Ignoring..."); +#endif + } + } + + if (OnOp != null) { + OnOp(this, new OpEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + if (remove) { + if (ActiveChannelSyncing) { + // sanity check + if (GetChannelUser(ircdata.Channel, temp) != null) { + // update the op list + channel.UnsafeOps.Remove(temp); +#if LOG4NET + Logger.ChannelSyncing.Debug("removed op: "+temp+" from: "+ircdata.Channel); +#endif + // update the user op status + ChannelUser cuser = GetChannelUser(ircdata.Channel, temp); + cuser.IsOp = false; +#if LOG4NET + Logger.ChannelSyncing.Debug("unset op status: " + temp + " for: "+ircdata.Channel); +#endif + } else { +#if LOG4NET + Logger.ChannelSyncing.Error("_InterpretChannelMode(): GetChannelUser(" + ircdata.Channel + "," + temp + ") returned null! Ignoring..."); +#endif + } + } + + if (OnDeop != null) { + OnDeop(this, new DeopEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + break; + case 'h': + if (SupportNonRfc) { + temp = (string)parametersEnumerator.Current; + parametersEnumerator.MoveNext(); + + if (add) { + if (ActiveChannelSyncing) { + // sanity check + if (GetChannelUser(ircdata.Channel, temp) != null) { + // update the halfop list + try { + ((NonRfcChannel)channel).UnsafeHalfops.Add(temp, GetIrcUser(temp)); +#if LOG4NET + Logger.ChannelSyncing.Debug("added halfop: "+temp+" to: "+ircdata.Channel); +#endif + } catch (ArgumentException) { +#if LOG4NET + Logger.ChannelSyncing.Debug("duplicate halfop: "+temp+" in: "+ircdata.Channel+" not added"); +#endif + } + + // update the user halfop status + NonRfcChannelUser cuser = (NonRfcChannelUser)GetChannelUser(ircdata.Channel, temp); + cuser.IsHalfop = true; +#if LOG4NET + Logger.ChannelSyncing.Debug("set halfop status: " + temp + " for: "+ircdata.Channel); +#endif + } else { +#if LOG4NET + Logger.ChannelSyncing.Error("_InterpretChannelMode(): GetChannelUser(" + ircdata.Channel + "," + temp + ") returned null! Ignoring..."); +#endif + } + } + + if (OnHalfop != null) { + OnHalfop(this, new HalfopEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + if (remove) { + if (ActiveChannelSyncing) { + // sanity check + if (GetChannelUser(ircdata.Channel, temp) != null) { + // update the halfop list + ((NonRfcChannel)channel).UnsafeHalfops.Remove(temp); +#if LOG4NET + Logger.ChannelSyncing.Debug("removed halfop: "+temp+" from: "+ircdata.Channel); +#endif + // update the user halfop status + NonRfcChannelUser cuser = (NonRfcChannelUser)GetChannelUser(ircdata.Channel, temp); + cuser.IsHalfop = false; +#if LOG4NET + Logger.ChannelSyncing.Debug("unset halfop status: " + temp + " for: "+ircdata.Channel); +#endif + } else { +#if LOG4NET + Logger.ChannelSyncing.Error("_InterpretChannelMode(): GetChannelUser(" + ircdata.Channel + "," + temp + ") returned null! Ignoring..."); +#endif + } + } + + if (OnDehalfop != null) { + OnDehalfop(this, new DehalfopEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + } + break; + case 'v': + temp = (string)parametersEnumerator.Current; + parametersEnumerator.MoveNext(); + + if (add) { + if (ActiveChannelSyncing) { + // sanity check + if (GetChannelUser(ircdata.Channel, temp) != null) { + // update the voice list + try { + channel.UnsafeVoices.Add(temp, GetIrcUser(temp)); +#if LOG4NET + Logger.ChannelSyncing.Debug("added voice: "+temp+" to: "+ircdata.Channel); +#endif + } catch (ArgumentException) { +#if LOG4NET + Logger.ChannelSyncing.Debug("duplicate voice: "+temp+" in: "+ircdata.Channel+" not added"); +#endif + } + + // update the user voice status + ChannelUser cuser = GetChannelUser(ircdata.Channel, temp); + cuser.IsVoice = true; +#if LOG4NET + Logger.ChannelSyncing.Debug("set voice status: " + temp + " for: "+ircdata.Channel); +#endif + } else { +#if LOG4NET + Logger.ChannelSyncing.Error("_InterpretChannelMode(): GetChannelUser(" + ircdata.Channel + "," + temp + ") returned null! Ignoring..."); +#endif + } + } + + if (OnVoice != null) { + OnVoice(this, new VoiceEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + if (remove) { + if (ActiveChannelSyncing) { + // sanity check + if (GetChannelUser(ircdata.Channel, temp) != null) { + // update the voice list + channel.UnsafeVoices.Remove(temp); +#if LOG4NET + Logger.ChannelSyncing.Debug("removed voice: "+temp+" from: "+ircdata.Channel); +#endif + // update the user voice status + ChannelUser cuser = GetChannelUser(ircdata.Channel, temp); + cuser.IsVoice = false; +#if LOG4NET + Logger.ChannelSyncing.Debug("unset voice status: " + temp + " for: "+ircdata.Channel); +#endif + } else { +#if LOG4NET + Logger.ChannelSyncing.Error("_InterpretChannelMode(): GetChannelUser(" + ircdata.Channel + "," + temp + ") returned null! Ignoring..."); +#endif + } + } + + if (OnDevoice != null) { + OnDevoice(this, new DevoiceEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + break; + case 'b': + temp = (string)parametersEnumerator.Current; + parametersEnumerator.MoveNext(); + if (add) { + if (ActiveChannelSyncing) { + try { + channel.Bans.Add(temp); +#if LOG4NET + Logger.ChannelSyncing.Debug("added ban: "+temp+" to: "+ircdata.Channel); +#endif + } catch (ArgumentException) { +#if LOG4NET + Logger.ChannelSyncing.Debug("duplicate ban: "+temp+" in: "+ircdata.Channel+" not added"); +#endif + } + } + if (OnBan != null) { + OnBan(this, new BanEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + if (remove) { + if (ActiveChannelSyncing) { + channel.Bans.Remove(temp); +#if LOG4NET + Logger.ChannelSyncing.Debug("removed ban: "+temp+" from: "+ircdata.Channel); +#endif + } + if (OnUnban != null) { + OnUnban(this, new UnbanEventArgs(ircdata, ircdata.Channel, ircdata.Nick, temp)); + } + } + break; + case 'l': + temp = (string)parametersEnumerator.Current; + parametersEnumerator.MoveNext(); + if (add) { + if (ActiveChannelSyncing) { + try { + channel.UserLimit = int.Parse(temp); +#if LOG4NET + Logger.ChannelSyncing.Debug("stored user limit for: "+ircdata.Channel); +#endif + } catch (FormatException) { +#if LOG4NET + Logger.ChannelSyncing.Error("could not parse user limit: "+temp+" channel: "+ircdata.Channel); +#endif + } + } + } + if (remove) { + if (ActiveChannelSyncing) { + channel.UserLimit = 0; +#if LOG4NET + Logger.ChannelSyncing.Debug("removed user limit for: "+ircdata.Channel); +#endif + } + } + break; + case 'k': + temp = (string)parametersEnumerator.Current; + parametersEnumerator.MoveNext(); + if (add) { + if (ActiveChannelSyncing) { + channel.Key = temp; +#if LOG4NET + Logger.ChannelSyncing.Debug("stored channel key for: "+ircdata.Channel); +#endif + } + } + if (remove) { + if (ActiveChannelSyncing) { + channel.Key = ""; +#if LOG4NET + Logger.ChannelSyncing.Debug("removed channel key for: "+ircdata.Channel); +#endif + } + } + break; + default: + if (add) { + if (ActiveChannelSyncing) { + if (channel.Mode.IndexOf(mode[i]) == -1) { + channel.Mode += mode[i]; +#if LOG4NET + Logger.ChannelSyncing.Debug("added channel mode ("+mode[i]+") for: "+ircdata.Channel); +#endif + } + } + } + if (remove) { + if (ActiveChannelSyncing) { + channel.Mode = channel.Mode.Replace(mode[i].ToString(), String.Empty); +#if LOG4NET + Logger.ChannelSyncing.Debug("removed channel mode ("+mode[i]+") for: "+ircdata.Channel); +#endif + } + } + break; + } + } + } + +#region Internal Messagehandlers + /// + /// Event handler for ping messages + /// + /// Message data containing ping information + private void _Event_PING(IrcMessageData ircdata) + { + string server = ircdata.RawMessageArray[1].Substring(1); +#if LOG4NET + Logger.Connection.Debug("Ping? Pong!"); +#endif + RfcPong(server, Priority.Critical); + + if (OnPing != null) { + OnPing(this, new PingEventArgs(ircdata, server)); + } + } + + /// + /// Event handler for PONG messages + /// + /// Message data containing pong information + private void _Event_PONG(IrcMessageData ircdata) + { + if (OnPong != null) { + OnPong(this, new PongEventArgs(ircdata, ircdata.Irc.Lag)); + } + } + + /// + /// Event handler for error messages + /// + /// Message data containing error information + private void _Event_ERROR(IrcMessageData ircdata) + { + string message = ircdata.Message; +#if LOG4NET + Logger.Connection.Info("received ERROR from IRC server"); +#endif + + if (OnError != null) { + OnError(this, new ErrorEventArgs(ircdata, message)); + } + } + + /// + /// Event handler for join messages + /// + /// Message data containing join information + private void _Event_JOIN(IrcMessageData ircdata) + { + string who = ircdata.Nick; + string channelname = ircdata.Channel; + + if (IsMe(who)) { + _JoinedChannels.Add(channelname); + } + + if (ActiveChannelSyncing) { + Channel channel; + if (IsMe(who)) { + // we joined the channel +#if LOG4NET + Logger.ChannelSyncing.Debug("joining channel: "+channelname); +#endif + channel = CreateChannel(channelname); + _Channels.Add(channelname, channel); + // request channel mode + RfcMode(channelname); + // request wholist + RfcWho(channelname); + // request banlist + Ban(channelname); + } else { + // someone else joined the channel + // request the who data + RfcWho(who); + } + +#if LOG4NET + Logger.ChannelSyncing.Debug(who+" joins channel: "+channelname); +#endif + channel = GetChannel(channelname); + IrcUser ircuser = GetIrcUser(who); + + if (ircuser == null) { + ircuser = new IrcUser(who, this); + ircuser.Ident = ircdata.Ident; + ircuser.Host = ircdata.Host; + _IrcUsers.Add(who, ircuser); + } + + ChannelUser channeluser = CreateChannelUser(channelname, ircuser); + channel.UnsafeUsers.Add(who, channeluser); + } + + if (OnJoin != null) { + OnJoin(this, new JoinEventArgs(ircdata, channelname, who)); + } + } + + /// + /// Event handler for part messages + /// + /// Message data containing part information + private void _Event_PART(IrcMessageData ircdata) + { + string who = ircdata.Nick; + string channel = ircdata.Channel; + string partmessage = ircdata.Message; + + if (IsMe(who)) { + _JoinedChannels.Remove(channel); + } + + if (ActiveChannelSyncing) { + if (IsMe(who)) { +#if LOG4NET + Logger.ChannelSyncing.Debug("parting channel: "+channel); +#endif + _Channels.Remove(channel); + } else { +#if LOG4NET + Logger.ChannelSyncing.Debug(who+" parts channel: "+channel); +#endif + _RemoveChannelUser(channel, who); + _RemoveIrcUser(who); + } + } + + if (OnPart != null) { + OnPart(this, new PartEventArgs(ircdata, channel, who, partmessage)); + } + } + + /// + /// Event handler for kick messages + /// + /// Message data containing kick information + private void _Event_KICK(IrcMessageData ircdata) + { + string channelname = ircdata.Channel; + string who = ircdata.Nick; + string whom = ircdata.RawMessageArray[3]; + string reason = ircdata.Message; + bool isme = IsMe(whom); + + if (isme) { + _JoinedChannels.Remove(channelname); + } + + if (ActiveChannelSyncing) { + if (isme) { + Channel channel = GetChannel(channelname); + _Channels.Remove(channelname); + if (_AutoRejoinOnKick) { + RfcJoin(channel.Name, channel.Key); + } + } else { + _RemoveChannelUser(channelname, whom); + _RemoveIrcUser(whom); + } + } else { + if (isme && AutoRejoinOnKick) { + RfcJoin(channelname); + } + } + + if (OnKick != null) { + OnKick(this, new KickEventArgs(ircdata, channelname, who, whom, reason)); + } + } + + /// + /// Event handler for quit messages + /// + /// Message data containing quit information + private void _Event_QUIT(IrcMessageData ircdata) + { + string who = ircdata.Nick; + string reason = ircdata.Message; + + // no need to handle if we quit, disconnect event will take care + + if (ActiveChannelSyncing) { + // sanity checks, freshirc is very broken about RFC + IrcUser user = GetIrcUser(who); + if (user != null) { + string[] joined_channels = user.JoinedChannels; + if (joined_channels != null) { + foreach (string channel in joined_channels) { + _RemoveChannelUser(channel, who); + } + _RemoveIrcUser(who); +#if LOG4NET + } else { + Logger.ChannelSyncing.Error("user.JoinedChannels (for: '"+who+"') returned null in _Event_QUIT! Ignoring..."); +#endif + } +#if LOG4NET + } else { + Logger.ChannelSyncing.Error("GetIrcUser("+who+") returned null in _Event_QUIT! Ignoring..."); +#endif + } + } + + if (OnQuit != null) { + OnQuit(this, new QuitEventArgs(ircdata, who, reason)); + } + } + + /// + /// Event handler for private messages + /// + /// Message data containing private message information + private void _Event_PRIVMSG(IrcMessageData ircdata) + { + if (ircdata.Type == ReceiveType.CtcpRequest) { + if (ircdata.Message.StartsWith("\x1"+"PING")) { + if (ircdata.Message.Length > 7) { + SendMessage(SendType.CtcpReply, ircdata.Nick, "PING "+ircdata.Message.Substring(6, (ircdata.Message.Length-7))); + } else { + SendMessage(SendType.CtcpReply, ircdata.Nick, "PING"); + } + } else if (ircdata.Message.StartsWith("\x1"+"VERSION")) { + string versionstring; + if (_CtcpVersion == null) { + versionstring = VersionString; + } else { + versionstring = _CtcpVersion; + } + SendMessage(SendType.CtcpReply, ircdata.Nick, "VERSION "+versionstring); + } else if (ircdata.Message.StartsWith("\x1"+"CLIENTINFO")) { + SendMessage(SendType.CtcpReply, ircdata.Nick, "CLIENTINFO PING VERSION CLIENTINFO"); + } + } + + switch (ircdata.Type) { + case ReceiveType.ChannelMessage: + if (OnChannelMessage != null) { + OnChannelMessage(this, new IrcEventArgs(ircdata)); + } + break; + case ReceiveType.ChannelAction: + if (OnChannelAction != null) { + string action = ircdata.Message.Substring(8, ircdata.Message.Length - 9); + OnChannelAction(this, new ActionEventArgs(ircdata, action)); + } + break; + case ReceiveType.QueryMessage: + if (OnQueryMessage != null) { + OnQueryMessage(this, new IrcEventArgs(ircdata)); + } + break; + case ReceiveType.QueryAction: + if (OnQueryAction != null) { + string action = ircdata.Message.Substring(8, ircdata.Message.Length - 9); + OnQueryAction(this, new ActionEventArgs(ircdata, action)); + } + break; + case ReceiveType.CtcpRequest: + if (OnCtcpRequest != null) { + int space_pos = ircdata.Message.IndexOf(' '); + string cmd = ""; + string param = ""; + if (space_pos != -1) { + cmd = ircdata.Message.Substring(1, space_pos - 1); + param = ircdata.Message.Substring(space_pos + 1, + ircdata.Message.Length - space_pos - 2); + } else { + cmd = ircdata.Message.Substring(1, ircdata.Message.Length - 2); + } + OnCtcpRequest(this, new CtcpEventArgs(ircdata, cmd, param)); + } + break; + } + } + + /// + /// Event handler for notice messages + /// + /// Message data containing notice information + private void _Event_NOTICE(IrcMessageData ircdata) + { + switch (ircdata.Type) { + case ReceiveType.ChannelNotice: + if (OnChannelNotice != null) { + OnChannelNotice(this, new IrcEventArgs(ircdata)); + } + break; + case ReceiveType.QueryNotice: + if (OnQueryNotice != null) { + OnQueryNotice(this, new IrcEventArgs(ircdata)); + } + break; + case ReceiveType.CtcpReply: + if (OnCtcpReply != null) { + int space_pos = ircdata.Message.IndexOf(' '); + string cmd = ""; + string param = ""; + if (space_pos != -1) { + cmd = ircdata.Message.Substring(1, space_pos - 1); + param = ircdata.Message.Substring(space_pos + 1, + ircdata.Message.Length - space_pos - 2); + } else { + cmd = ircdata.Message.Substring(1, ircdata.Message.Length - 2); + } + OnCtcpReply(this, new CtcpEventArgs(ircdata, cmd, param)); + } + break; + } + } + + /// + /// Event handler for topic messages + /// + /// Message data containing topic information + private void _Event_TOPIC(IrcMessageData ircdata) + { + string who = ircdata.Nick; + string channel = ircdata.Channel; + string newtopic = ircdata.Message; + + if (ActiveChannelSyncing && + IsJoined(channel)) { + GetChannel(channel).Topic = newtopic; +#if LOG4NET + Logger.ChannelSyncing.Debug("stored topic for channel: "+channel); +#endif + } + + if (OnTopicChange != null) { + OnTopicChange(this, new TopicChangeEventArgs(ircdata, channel, who, newtopic)); + } + } + + /// + /// Event handler for nickname messages + /// + /// Message data containing nickname information + private void _Event_NICK(IrcMessageData ircdata) + { + string oldnickname = ircdata.Nick; + //string newnickname = ircdata.Message; + // the colon in the NICK message is optional, thus we can't rely on Message + string newnickname = ircdata.RawMessageArray[2]; + + // so let's strip the colon if it's there + if (newnickname.StartsWith(":")) { + newnickname = newnickname.Substring(1); + } + + if (IsMe(ircdata.Nick)) { + // nickname change is your own + _Nickname = newnickname; + } + + if (ActiveChannelSyncing) { + IrcUser ircuser = GetIrcUser(oldnickname); + + // if we don't have any info about him, don't update him! + // (only queries or ourself in no channels) + if (ircuser != null) { + string[] joinedchannels = ircuser.JoinedChannels; + + // update his nickname + ircuser.Nick = newnickname; + // remove the old entry + // remove first to avoid duplication, Foo -> foo + _IrcUsers.Remove(oldnickname); + // add him as new entry and new nickname as key + _IrcUsers.Add(newnickname, ircuser); +#if LOG4NET + Logger.ChannelSyncing.Debug("updated nickname of: "+oldnickname+" to: "+newnickname); +#endif + // now the same for all channels he is joined + Channel channel; + ChannelUser channeluser; + foreach (string channelname in joinedchannels) { + channel = GetChannel(channelname); + channeluser = GetChannelUser(channelname, oldnickname); + // remove first to avoid duplication, Foo -> foo + channel.UnsafeUsers.Remove(oldnickname); + channel.UnsafeUsers.Add(newnickname, channeluser); + if (channeluser.IsOp) { + channel.UnsafeOps.Remove(oldnickname); + channel.UnsafeOps.Add(newnickname, channeluser); + } + if (SupportNonRfc && ((NonRfcChannelUser)channeluser).IsHalfop) { + NonRfcChannel nchannel = (NonRfcChannel)channel; + nchannel.UnsafeHalfops.Remove(oldnickname); + nchannel.UnsafeHalfops.Add(newnickname, channeluser); + } + if (channeluser.IsVoice) { + channel.UnsafeVoices.Remove(oldnickname); + channel.UnsafeVoices.Add(newnickname, channeluser); + } + } + } + } + + if (OnNickChange != null) { + OnNickChange(this, new NickChangeEventArgs(ircdata, oldnickname, newnickname)); + } + } + + /// + /// Event handler for invite messages + /// + /// Message data containing invite information + private void _Event_INVITE(IrcMessageData ircdata) + { + string channel = ircdata.Channel; + string inviter = ircdata.Nick; + + if (AutoJoinOnInvite) { + if (channel.Trim() != "0") { + RfcJoin(channel); + } + } + + if (OnInvite != null) { + OnInvite(this, new InviteEventArgs(ircdata, channel, inviter)); + } + } + + /// + /// Event handler for mode messages + /// + /// Message data containing mode information + private void _Event_MODE(IrcMessageData ircdata) + { + if (IsMe(ircdata.RawMessageArray[2])) { + // my user mode changed + _Usermode = ircdata.RawMessageArray[3].Substring(1); + } else { + // channel mode changed + string mode = ircdata.RawMessageArray[3]; + string parameter = String.Join(" ", ircdata.RawMessageArray, 4, ircdata.RawMessageArray.Length-4); + _InterpretChannelMode(ircdata, mode, parameter); + } + + if ((ircdata.Type == ReceiveType.UserModeChange) && + (OnUserModeChange != null)) { + OnUserModeChange(this, new IrcEventArgs(ircdata)); + } + + if ((ircdata.Type == ReceiveType.ChannelModeChange) && + (OnChannelModeChange != null)) { + OnChannelModeChange(this, new IrcEventArgs(ircdata)); + } + + if (OnModeChange != null) { + OnModeChange(this, new IrcEventArgs(ircdata)); + } + } + + + /// + /// Event handler for channel mode reply messages + /// + /// Message data containing reply information + private void _Event_RPL_CHANNELMODEIS(IrcMessageData ircdata) + { + if (ActiveChannelSyncing && + IsJoined(ircdata.Channel)) { + // reset stored mode first, as this is the complete mode + Channel chan = GetChannel(ircdata.Channel); + chan.Mode = String.Empty; + string mode = ircdata.RawMessageArray[4]; + string parameter = String.Join(" ", ircdata.RawMessageArray, 5, ircdata.RawMessageArray.Length-5); + _InterpretChannelMode(ircdata, mode, parameter); + } + } + + /// + /// Event handler for welcome reply messages + /// + /// + /// Upon success, the client will receive an RPL_WELCOME (for users) or + /// RPL_YOURESERVICE (for services) message indicating that the + /// connection is now registered and known the to the entire IRC network. + /// The reply message MUST contain the full client identifier upon which + /// it was registered. + /// + /// Message data containing reply information + private void _Event_RPL_WELCOME(IrcMessageData ircdata) + { + // updating our nickname, that we got (maybe cutted...) + _Nickname = ircdata.RawMessageArray[2]; + + if (OnRegistered != null) { + OnRegistered(this, EventArgs.Empty); + } + } + + private void _Event_RPL_TOPIC(IrcMessageData ircdata) + { + string topic = ircdata.Message; + string channel = ircdata.Channel; + + if (ActiveChannelSyncing && + IsJoined(channel)) { + GetChannel(channel).Topic = topic; +#if LOG4NET + Logger.ChannelSyncing.Debug("stored topic for channel: "+channel); +#endif + } + + if (OnTopic != null) { + OnTopic(this, new TopicEventArgs(ircdata, channel, topic)); + } + } + + private void _Event_RPL_NOTOPIC(IrcMessageData ircdata) + { + string channel = ircdata.Channel; + + if (ActiveChannelSyncing && + IsJoined(channel)) { + GetChannel(channel).Topic = ""; +#if LOG4NET + Logger.ChannelSyncing.Debug("stored empty topic for channel: "+channel); +#endif + } + + if (OnTopic != null) { + OnTopic(this, new TopicEventArgs(ircdata, channel, "")); + } + } + + private void _Event_RPL_NAMREPLY(IrcMessageData ircdata) + { + string channelname = ircdata.Channel; + string[] userlist = ircdata.MessageArray; + if (ActiveChannelSyncing && + IsJoined(channelname)) { + string nickname; + bool op; + bool halfop; + bool voice; + foreach (string user in userlist) { + if (user.Length <= 0) { + continue; + } + + op = false; + halfop = false; + voice = false; + switch (user[0]) { + case '@': + op = true; + nickname = user.Substring(1); + break; + case '+': + voice = true; + nickname = user.Substring(1); + break; + // RFC VIOLATION + // some IRC network do this and break our channel sync... + case '&': + nickname = user.Substring(1); + break; + case '%': + halfop = true; + nickname = user.Substring(1); + break; + case '~': + nickname = user.Substring(1); + break; + default: + nickname = user; + break; + } + + IrcUser ircuser = GetIrcUser(nickname); + ChannelUser channeluser = GetChannelUser(channelname, nickname); + + if (ircuser == null) { +#if LOG4NET + Logger.ChannelSyncing.Debug("creating IrcUser: "+nickname+" because he doesn't exist yet"); +#endif + ircuser = new IrcUser(nickname, this); + _IrcUsers.Add(nickname, ircuser); + } + + if (channeluser == null) { +#if LOG4NET + Logger.ChannelSyncing.Debug("creating ChannelUser: "+nickname+" for Channel: "+channelname+" because he doesn't exist yet"); +#endif + + channeluser = CreateChannelUser(channelname, ircuser); + Channel channel = GetChannel(channelname); + + channel.UnsafeUsers.Add(nickname, channeluser); + if (op) { + channel.UnsafeOps.Add(nickname, channeluser); +#if LOG4NET + Logger.ChannelSyncing.Debug("added op: "+nickname+" to: "+channelname); +#endif + } + if (SupportNonRfc && halfop) { + ((NonRfcChannel)channel).UnsafeHalfops.Add(nickname, channeluser); +#if LOG4NET + Logger.ChannelSyncing.Debug("added halfop: "+nickname+" to: "+channelname); +#endif + } + if (voice) { + channel.UnsafeVoices.Add(nickname, channeluser); +#if LOG4NET + Logger.ChannelSyncing.Debug("added voice: "+nickname+" to: "+channelname); +#endif + } + } + + channeluser.IsOp = op; + channeluser.IsVoice = voice; + if (SupportNonRfc) { + ((NonRfcChannelUser)channeluser).IsHalfop = halfop; + } + } + } + + if (OnNames != null) { + OnNames(this, new NamesEventArgs(ircdata, channelname, userlist)); + } + } + + private void _Event_RPL_LIST(IrcMessageData ircdata) + { + string channelName = ircdata.Channel; + int userCount = Int32.Parse(ircdata.RawMessageArray[4]); + string topic = ircdata.Message; + + ChannelInfo info = null; + if (OnList != null || _ChannelList != null) { + info = new ChannelInfo(channelName, userCount, topic); + } + + if (_ChannelList != null) { + _ChannelList.Add(info); + } + + if (OnList != null) { + OnList(this, new ListEventArgs(ircdata, info)); + } + } + + private void _Event_RPL_LISTEND(IrcMessageData ircdata) + { + if (_ChannelListReceivedEvent != null) { + _ChannelListReceivedEvent.Set(); + } + } + + private void _Event_RPL_TRYAGAIN(IrcMessageData ircdata) + { + if (_ChannelListReceivedEvent != null) { + _ChannelListReceivedEvent.Set(); + } + } + + /* + // BUG: RFC2812 says LIST and WHO might return ERR_TOOMANYMATCHES which + // is not defined :( + private void _Event_ERR_TOOMANYMATCHES(IrcMessageData ircdata) + { + if (_ListInfosReceivedEvent != null) { + _ListInfosReceivedEvent.Set(); + } + } + */ + + private void _Event_RPL_ENDOFNAMES(IrcMessageData ircdata) + { + string channelname = ircdata.RawMessageArray[3]; + if (ActiveChannelSyncing && + IsJoined(channelname)) { +#if LOG4NET + Logger.ChannelSyncing.Debug("passive synced: "+channelname); +#endif + if (OnChannelPassiveSynced != null) { + OnChannelPassiveSynced(this, new IrcEventArgs(ircdata)); + } + } + } + + private void _Event_RPL_AWAY(IrcMessageData ircdata) + { + string who = ircdata.RawMessageArray[3]; + string awaymessage = ircdata.Message; + + if (ActiveChannelSyncing) { + IrcUser ircuser = GetIrcUser(who); + if (ircuser != null) { +#if LOG4NET + Logger.ChannelSyncing.Debug("setting away flag for user: "+who); +#endif + ircuser.IsAway = true; + } + } + + if (OnAway != null) { + OnAway(this, new AwayEventArgs(ircdata, who, awaymessage)); + } + } + + private void _Event_RPL_UNAWAY(IrcMessageData ircdata) + { + _IsAway = false; + + if (OnUnAway != null) { + OnUnAway(this, new IrcEventArgs(ircdata)); + } + } + + private void _Event_RPL_NOWAWAY(IrcMessageData ircdata) + { + _IsAway = true; + + if (OnNowAway != null) { + OnNowAway(this, new IrcEventArgs(ircdata)); + } + } + + private void _Event_RPL_WHOREPLY(IrcMessageData ircdata) + { + WhoInfo info = WhoInfo.Parse(ircdata); + string channel = info.Channel; + string nick = info.Nick; + + if (_WhoList != null) { + _WhoList.Add(info); + } + + if (ActiveChannelSyncing && + IsJoined(channel)) { + // checking the irc and channel user I only do for sanity! + // according to RFC they must be known to us already via RPL_NAMREPLY + // psyBNC is not very correct with this... maybe other bouncers too + IrcUser ircuser = GetIrcUser(nick); + ChannelUser channeluser = GetChannelUser(channel, nick); +#if LOG4NET + if (ircuser == null) { + Logger.ChannelSyncing.Error("GetIrcUser("+nick+") returned null in _Event_WHOREPLY! Ignoring..."); + } +#endif + +#if LOG4NET + if (channeluser == null) { + Logger.ChannelSyncing.Error("GetChannelUser("+nick+") returned null in _Event_WHOREPLY! Ignoring..."); + } +#endif + + if (ircuser != null) { +#if LOG4NET + Logger.ChannelSyncing.Debug("updating userinfo (from whoreply) for user: "+nick+" channel: "+channel); +#endif + + ircuser.Ident = info.Ident; + ircuser.Host = info.Host; + ircuser.Server = info.Server; + ircuser.Nick = info.Nick; + ircuser.HopCount = info.HopCount; + ircuser.Realname = info.Realname; + ircuser.IsAway = info.IsAway; + ircuser.IsIrcOp = info.IsIrcOp; + + switch (channel[0]) { + case '#': + case '!': + case '&': + case '+': + // this channel may not be where we are joined! + // see RFC 1459 and RFC 2812, it must return a channelname + // we use this channel info when possible... + if (channeluser != null) { + channeluser.IsOp = info.IsOp; + channeluser.IsVoice = info.IsVoice; + } + break; + } + } + } + + if (OnWho != null) { + OnWho(this, new WhoEventArgs(ircdata, info)); + } + } + + private void _Event_RPL_ENDOFWHO(IrcMessageData ircdata) + { + if (_WhoListReceivedEvent != null) { + _WhoListReceivedEvent.Set(); + } + } + + private void _Event_RPL_MOTD(IrcMessageData ircdata) + { + if (!_MotdReceived) { + _Motd.Add(ircdata.Message); + } + + if (OnMotd != null) { + OnMotd(this, new MotdEventArgs(ircdata, ircdata.Message)); + } + } + + private void _Event_RPL_ENDOFMOTD(IrcMessageData ircdata) + { + _MotdReceived = true; + } + + private void _Event_RPL_BANLIST(IrcMessageData ircdata) + { + string channelname = ircdata.Channel; + + BanInfo info = BanInfo.Parse(ircdata); + if (_BanList != null) { + _BanList.Add(info); + } + + if (ActiveChannelSyncing && + IsJoined(channelname)) { + Channel channel = GetChannel(channelname); + if (channel.IsSycned) { + return; + } + + channel.Bans.Add(info.Mask); + } + } + + private void _Event_RPL_ENDOFBANLIST(IrcMessageData ircdata) + { + string channelname = ircdata.Channel; + + if (_BanListReceivedEvent != null) { + _BanListReceivedEvent.Set(); + } + + if (ActiveChannelSyncing && + IsJoined(channelname)) { + Channel channel = GetChannel(channelname); + if (channel.IsSycned) { + // only fire the event once + return; + } + + channel.ActiveSyncStop = DateTime.Now; + channel.IsSycned = true; +#if LOG4NET + Logger.ChannelSyncing.Debug("active synced: "+channelname+ + " (in "+channel.ActiveSyncTime.TotalSeconds+" sec)"); +#endif + if (OnChannelActiveSynced != null) { + OnChannelActiveSynced(this, new IrcEventArgs(ircdata)); + } + } + } + + // MODE +b might return ERR_NOCHANMODES for mode-less channels (like +chan) + private void _Event_ERR_NOCHANMODES(IrcMessageData ircdata) + { + string channelname = ircdata.RawMessageArray[3]; + if (ActiveChannelSyncing && + IsJoined(channelname)) { + Channel channel = GetChannel(channelname); + if (channel.IsSycned) { + // only fire the event once + return; + } + + channel.ActiveSyncStop = DateTime.Now; + channel.IsSycned = true; +#if LOG4NET + Logger.ChannelSyncing.Debug("active synced: "+channelname+ + " (in "+channel.ActiveSyncTime.TotalSeconds+" sec)"); +#endif + if (OnChannelActiveSynced != null) { + OnChannelActiveSynced(this, new IrcEventArgs(ircdata)); + } + } + } + + private void _Event_ERR(IrcMessageData ircdata) + { + if (OnErrorMessage != null) { + OnErrorMessage(this, new IrcEventArgs(ircdata)); + } + } + + private void _Event_ERR_NICKNAMEINUSE(IrcMessageData ircdata) + { +#if LOG4NET + Logger.Connection.Warn("nickname collision detected, changing nickname"); +#endif + if (!AutoNickHandling) { + return; + } + + string nickname; + // if a nicklist has been given loop through the nicknames + // if the upper limit of this list has been reached and still no nickname has registered + // then generate a random nick + if (_CurrentNickname == NicknameList.Length-1) { + Random rand = new Random(); + int number = rand.Next(999); + if (Nickname.Length > 5) { + nickname = Nickname.Substring(0, 5)+number; + } else { + nickname = Nickname.Substring(0, Nickname.Length-1)+number; + } + } else { + nickname = _NextNickname(); + } + // change the nickname + RfcNick(nickname, Priority.Critical); + } +#endregion + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcMessageData.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcMessageData.cs new file mode 100644 index 0000000..94fb85a --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcMessageData.cs @@ -0,0 +1,193 @@ +/* + * $Id: IrcMessageData.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/IrcMessageData.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +namespace Meebey.SmartIrc4net +{ + /// + /// This class contains an IRC message in a parsed form + /// + /// + public class IrcMessageData + { + private IrcClient _Irc; + private string _From; + private string _Nick; + private string _Ident; + private string _Host; + private string _Channel; + private string _Message; + private string[] _MessageArray; + private string _RawMessage; + private string[] _RawMessageArray; + private ReceiveType _Type; + private ReplyCode _ReplyCode; + + /// + /// Gets the IrcClient object the message originated from + /// + public IrcClient Irc { + get { + return _Irc; + } + } + + /// + /// Gets the combined nickname, identity and hostname of the user that sent the message + /// + /// + /// nick!ident@host + /// + public string From { + get { + return _From; + } + } + + /// + /// Gets the nickname of the user that sent the message + /// + public string Nick { + get { + return _Nick; + } + } + + /// + /// Gets the identity (username) of the user that sent the message + /// + public string Ident { + get { + return _Ident; + } + } + + /// + /// Gets the hostname of the user that sent the message + /// + public string Host { + get { + return _Host; + } + } + + /// + /// Gets the channel the message originated from + /// + public string Channel { + get { + return _Channel; + } + } + + /// + /// Gets the message + /// + public string Message { + get { + return _Message; + } + } + + /// + /// Gets the message as an array of strings (splitted by space) + /// + public string[] MessageArray { + get { + return _MessageArray; + } + } + + /// + /// Gets the raw message sent by the server + /// + public string RawMessage { + get { + return _RawMessage; + } + } + + /// + /// Gets the raw message sent by the server as array of strings (splitted by space) + /// + public string[] RawMessageArray { + get { + return _RawMessageArray; + } + } + + /// + /// Gets the message type + /// + public ReceiveType Type { + get { + return _Type; + } + } + + /// + /// Gets the message reply code + /// + public ReplyCode ReplyCode { + get { + return _ReplyCode; + } + } + + /// + /// Constructor to create an instace of IrcMessageData + /// + /// IrcClient the message originated from + /// combined nickname, identity and host of the user that sent the message (nick!ident@host) + /// nickname of the user that sent the message + /// identity (username) of the userthat sent the message + /// hostname of the user that sent the message + /// channel the message originated from + /// message + /// raw message sent by the server + /// message type + /// message reply code + public IrcMessageData(IrcClient ircclient, string from, string nick, string ident, string host, string channel, string message, string rawmessage, ReceiveType type, ReplyCode replycode) + { + _Irc = ircclient; + _RawMessage = rawmessage; + _RawMessageArray = rawmessage.Split(new char[] {' '}); + _Type = type; + _ReplyCode = replycode; + _From = from; + _Nick = nick; + _Ident = ident; + _Host = host; + _Channel = channel; + if (message != null) { + // message is optional + _Message = message; + _MessageArray = message.Split(new char[] {' '}); + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcUser.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcUser.cs new file mode 100644 index 0000000..db69e9b --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/IrcUser.cs @@ -0,0 +1,211 @@ +/* + * $Id: IrcUser.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/IrcUser.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System.Collections.Specialized; + +namespace Meebey.SmartIrc4net +{ + /// + /// This class manages the user information. + /// + /// + /// only used with channel sync + /// + /// IrcClient.ActiveChannelSyncing + /// + /// + /// + public class IrcUser + { + private IrcClient _IrcClient; + private string _Nick = null; + private string _Ident = null; + private string _Host = null; + private string _Realname = null; + private bool _IsIrcOp = false; + private bool _IsAway = false; + private string _Server = null; + private int _HopCount = -1; + + internal IrcUser(string nickname, IrcClient ircclient) + { + _IrcClient = ircclient; + _Nick = nickname; + } + +#if LOG4NET + ~IrcUser() + { + Logger.ChannelSyncing.Debug("IrcUser ("+Nick+") destroyed"); + } +#endif + + /// + /// Gets or sets the nickname of the user. + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public string Nick { + get { + return _Nick; + } + set { + _Nick = value; + } + } + + /// + /// Gets or sets the identity (username) of the user which is used by some IRC networks for authentication. + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public string Ident { + get { + return _Ident; + } + set { + _Ident = value; + } + } + + /// + /// Gets or sets the hostname of the user. + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public string Host { + get { + return _Host; + } + set { + _Host = value; + } + } + + /// + /// Gets or sets the supposed real name of the user. + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public string Realname { + get { + return _Realname; + } + set { + _Realname = value; + } + } + + /// + /// Gets or sets the server operator status of the user + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public bool IsIrcOp { + get { + return _IsIrcOp; + } + set { + _IsIrcOp = value; + } + } + + /// + /// Gets or sets away status of the user + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public bool IsAway { + get { + return _IsAway; + } + set { + _IsAway = value; + } + } + + /// + /// Gets or sets the server the user is connected to + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public string Server { + get { + return _Server; + } + set { + _Server = value; + } + } + + /// + /// Gets or sets the count of hops between you and the user's server + /// + /// + /// Do _not_ set this value, it will break channel sync! + /// + public int HopCount { + get { + return _HopCount; + } + set { + _HopCount = value; + } + } + + /// + /// Gets the list of channels the user has joined + /// + public string[] JoinedChannels { + get { + Channel channel; + string[] result; + string[] channels = _IrcClient.GetChannels(); + StringCollection joinedchannels = new StringCollection(); + foreach (string channelname in channels) { + channel = _IrcClient.GetChannel(channelname); + if (channel.UnsafeUsers.ContainsKey(_Nick)) { + joinedchannels.Add(channelname); + } + } + + result = new string[joinedchannels.Count]; + joinedchannels.CopyTo(result, 0); + return result; + //return joinedchannels; + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/NonRfcChannel.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/NonRfcChannel.cs new file mode 100644 index 0000000..4845ca4 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/NonRfcChannel.cs @@ -0,0 +1,77 @@ +/* + * $Id: NonRfcChannel.cs 274 2008-06-02 19:10:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/NonRfcChannel.cs $ + * $Rev: 274 $ + * $Author: meebey $ + * $Date: 2008-06-02 21:10:11 +0200 (Mon, 02 Jun 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System.Collections; +using System.Collections.Specialized; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + public class NonRfcChannel : Channel + { + private Hashtable _Halfops = Hashtable.Synchronized(new Hashtable(new CaseInsensitiveHashCodeProvider(), new CaseInsensitiveComparer())); + + /// + /// + /// + /// + internal NonRfcChannel(string name) : base(name) + { + } + +#if LOG4NET + ~NonRfcChannel() + { + Logger.ChannelSyncing.Debug("NonRfcChannel ("+Name+") destroyed"); + } +#endif + + /// + /// + /// + /// + public Hashtable Halfops { + get { + return (Hashtable) _Halfops.Clone(); + } + } + + /// + /// + /// + /// + internal Hashtable UnsafeHalfops { + get { + return _Halfops; + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/NonRfcChannelUser.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/NonRfcChannelUser.cs new file mode 100644 index 0000000..df23f54 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/NonRfcChannelUser.cs @@ -0,0 +1,70 @@ +/* + * $Id: NonRfcChannelUser.cs 274 2008-06-02 19:10:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/NonRfcChannelUser.cs $ + * $Rev: 274 $ + * $Author: meebey $ + * $Date: 2008-06-02 21:10:11 +0200 (Mon, 02 Jun 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + public class NonRfcChannelUser : ChannelUser + { + private bool _IsHalfop; + private bool _IsOwner; + private bool _IsAdmin; + + /// + /// + /// + /// + /// + internal NonRfcChannelUser(string channel, IrcUser ircuser) : base(channel, ircuser) + { + } + +#if LOG4NET + ~NonRfcChannelUser() + { + Logger.ChannelSyncing.Debug("NonRfcChannelUser ("+Channel+":"+IrcUser.Nick+") destroyed"); + } +#endif + + /// + /// + /// + /// + public bool IsHalfop { + get { + return _IsHalfop; + } + set { + _IsHalfop = value; + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/WhoInfo.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/WhoInfo.cs new file mode 100644 index 0000000..dece7c8 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcClient/WhoInfo.cs @@ -0,0 +1,173 @@ +/* + * $Id: IrcUser.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcClient/IrcUser.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2008 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +using System; + +namespace Meebey.SmartIrc4net +{ + public class WhoInfo + { + private string f_Channel; + private string f_Ident; + private string f_Host; + private string f_Server; + private string f_Nick; + private int f_HopCount; + private string f_Realname; + private bool f_IsAway; + private bool f_IsOp; + private bool f_IsVoice; + private bool f_IsIrcOp; + + public string Channel { + get { + return f_Channel; + } + } + + public string Ident { + get { + return f_Ident; + } + } + + public string Host { + get { + return f_Host; + } + } + + public string Server { + get { + return f_Server; + } + } + + public string Nick { + get { + return f_Nick; + } + } + + public int HopCount { + get { + return f_HopCount; + } + } + + public string Realname { + get { + return f_Realname; + } + } + + public bool IsAway { + get { + return f_IsAway; + } + } + + public bool IsOp { + get { + return f_IsOp; + } + } + + public bool IsVoice { + get { + return f_IsVoice; + } + } + + public bool IsIrcOp { + get { + return f_IsIrcOp; + } + } + + private WhoInfo() + { + } + + public static WhoInfo Parse(IrcMessageData data) + { + WhoInfo whoInfo = new WhoInfo(); + // :fu-berlin.de 352 meebey_ * ~meebey e176002059.adsl.alicedsl.de fu-berlin.de meebey_ H :0 Mirco Bauer.. + whoInfo.f_Channel = data.RawMessageArray[3]; + whoInfo.f_Ident = data.RawMessageArray[4]; + whoInfo.f_Host = data.RawMessageArray[5]; + whoInfo.f_Server = data.RawMessageArray[6]; + whoInfo.f_Nick = data.RawMessageArray[7]; + // skip hop count + whoInfo.f_Realname = String.Join(" ", data.MessageArray, 1, data.MessageArray.Length - 1); + + int hopcount = 0; + string hopcountStr = data.MessageArray[0]; + try { + hopcount = int.Parse(hopcountStr); + } catch (FormatException ex) { +#if LOG4NET + Logger.MessageParser.Warn("Parse(): couldn't parse (as int): '" + hopcountStr + "'", ex); +#endif + } + + string usermode = data.RawMessageArray[8]; + bool op = false; + bool voice = false; + bool ircop = false; + bool away = false; + int usermodelength = usermode.Length; + for (int i = 0; i < usermodelength; i++) { + switch (usermode[i]) { + case 'H': + away = false; + break; + case 'G': + away = true; + break; + case '@': + op = true; + break; + case '+': + voice = true; + break; + case '*': + ircop = true; + break; + } + } + whoInfo.f_IsAway = away; + whoInfo.f_IsOp = op; + whoInfo.f_IsVoice = voice; + whoInfo.f_IsIrcOp = ircop; + + return whoInfo; + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcCommands/IrcCommands.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcCommands/IrcCommands.cs new file mode 100644 index 0000000..34d9cf4 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcCommands/IrcCommands.cs @@ -0,0 +1,2292 @@ +/* + * $Id: IrcCommands.cs 288 2008-07-28 21:56:47Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcCommands/IrcCommands.cs $ + * $Rev: 288 $ + * $Author: meebey $ + * $Date: 2008-07-28 23:56:47 +0200 (Mon, 28 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Text; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + public class IrcCommands : IrcConnection + { + private int _MaxModeChanges = 3; + + protected int MaxModeChanges { + get { + return _MaxModeChanges; + } + set { + _MaxModeChanges = value; + } + } + +#if LOG4NET + public IrcCommands() + { + Logger.Main.Debug("IrcCommands created"); + } +#endif + +#if LOG4NET + ~IrcCommands() + { + Logger.Main.Debug("IrcCommands destroyed"); + } +#endif + + // API commands + /// + /// + /// + /// + /// + /// + /// + public void SendMessage(SendType type, string destination, string message, Priority priority) + { + switch(type) { + case SendType.Message: + RfcPrivmsg(destination, message, priority); + break; + case SendType.Action: + RfcPrivmsg(destination, "\x1"+"ACTION "+message+"\x1", priority); + break; + case SendType.Notice: + RfcNotice(destination, message, priority); + break; + case SendType.CtcpRequest: + RfcPrivmsg(destination, "\x1"+message+"\x1", priority); + break; + case SendType.CtcpReply: + RfcNotice(destination, "\x1"+message+"\x1", priority); + break; + } + } + + /// + /// + /// + /// + /// + /// + public void SendMessage(SendType type, string destination, string message) + { + SendMessage(type, destination, message, Priority.Medium); + } + + /// + /// + /// + /// + /// + /// + public void SendReply(IrcMessageData data, string message, Priority priority) + { + switch (data.Type) { + case ReceiveType.ChannelMessage: + SendMessage(SendType.Message, data.Channel, message, priority); + break; + case ReceiveType.QueryMessage: + SendMessage(SendType.Message, data.Nick, message, priority); + break; + case ReceiveType.QueryNotice: + SendMessage(SendType.Notice, data.Nick, message, priority); + break; + } + } + + /// + /// + /// + /// + /// + public void SendReply(IrcMessageData data, string message) + { + SendReply(data, message, Priority.Medium); + } + + /// + /// + /// + /// + /// + /// + public void Op(string channel, string nickname, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "+o "+nickname), priority); + } + + /// + /// + /// + /// + /// + /* + public void Op(string channel, string[] nicknames) + { + if (nicknames == null) { + throw new ArgumentNullException("nicknames"); + } + + string[] modes = new string[nicknames.Length]; + for (int i = 0; i < nicknames.Length; i++) { + modes[i] = "+o"; + } + WriteLine(Rfc2812.Mode(channel, modes, nicknames)); + } + */ + + public void Op(string channel, string nickname) + { + WriteLine(Rfc2812.Mode(channel, "+o "+nickname)); + } + + /// + /// + /// + /// + /// + /// + public void Deop(string channel, string nickname, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "-o "+nickname), priority); + } + + /// + /// + /// + /// + /// + public void Deop(string channel, string nickname) + { + WriteLine(Rfc2812.Mode(channel, "-o "+nickname)); + } + + /// + /// + /// + /// + /// + /// + public void Voice(string channel, string nickname, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "+v "+nickname), priority); + } + + /// + /// + /// + /// + /// + public void Voice(string channel, string nickname) + { + WriteLine(Rfc2812.Mode(channel, "+v "+nickname)); + } + + /// + /// + /// + /// + /// + /// + public void Devoice(string channel, string nickname, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "-v "+nickname), priority); + } + + /// + /// + /// + /// + /// + public void Devoice(string channel, string nickname) + { + WriteLine(Rfc2812.Mode(channel, "-v "+nickname)); + } + + /// + /// + /// + /// + /// + public void Ban(string channel, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "+b"), priority); + } + + /// + /// + /// + /// + public void Ban(string channel) + { + WriteLine(Rfc2812.Mode(channel, "+b")); + } + + /// + /// + /// + /// + /// + /// + public void Ban(string channel, string hostmask, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "+b "+hostmask), priority); + } + + /// + /// + /// + /// + /// + public void Ban(string channel, string hostmask) + { + WriteLine(Rfc2812.Mode(channel, "+b "+hostmask)); + } + + /// + /// + /// + /// + /// + /// + public void Unban(string channel, string hostmask, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "-b "+hostmask), priority); + } + + /// + /// + /// + /// + /// + public void Unban(string channel, string hostmask) + { + WriteLine(Rfc2812.Mode(channel, "-b "+hostmask)); + } + + // non-RFC commands + /// + /// + /// + /// + /// + /// + public void Halfop(string channel, string nickname, Priority priority) + { + WriteLine(Rfc2812.Mode(channel, "+h "+nickname), priority); + } + + /// + /// + /// + /// + /// + public void Dehalfop(string channel, string nickname) + { + WriteLine(Rfc2812.Mode(channel, "-h "+nickname)); + } + + /// + /// + /// + /// + /// + /* + public void Mode(string target, string[] newModes, string[] newModeParameters) + { + int modeLines = (int) Math.Ceiling(newModes.Length / (double) _MaxModeChanges); + for (int i = 0; i < modeLines; i++) { + int chunkOffset = i * _MaxModeChanges; + string[] newModeChunks = new string[_MaxModeChanges]; + string[] newModeParameterChunks = new string[_MaxModeChanges]; + for (int j = 0; j < _MaxModeChanges; j++) { + newModeChunks[j] = newModes[chunkOffset + j]; + newModeParameterChunks[j] = newModeParameterChunks[chunkOffset + j]; + } + WriteLine(Rfc2812.Mode(target, newModeChunks, newModeParameterChunks)); + } + } + */ + +#region RFC commands + /// + /// + /// + /// + /// + public void RfcPass(string password, Priority priority) + { + WriteLine(Rfc2812.Pass(password), priority); + } + + /// + /// + /// + /// + public void RfcPass(string password) + { + WriteLine(Rfc2812.Pass(password)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcUser(string username, int usermode, string realname, Priority priority) + { + WriteLine(Rfc2812.User(username, usermode, realname), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcUser(string username, int usermode, string realname) + { + WriteLine(Rfc2812.User(username, usermode, realname)); + } + + /// + /// + /// + /// + /// + /// + public void RfcOper(string name, string password, Priority priority) + { + WriteLine(Rfc2812.Oper(name, password), priority); + } + + /// + /// + /// + /// + /// + public void RfcOper(string name, string password) + { + WriteLine(Rfc2812.Oper(name, password)); + } + + /// + /// + /// + /// + /// + /// + public void RfcPrivmsg(string destination, string message, Priority priority) + { + WriteLine(Rfc2812.Privmsg(destination, message), priority); + } + + /// + /// + /// + /// + /// + public void RfcPrivmsg(string destination, string message) + { + WriteLine(Rfc2812.Privmsg(destination, message)); + } + + /// + /// + /// + /// + /// + /// + public void RfcNotice(string destination, string message, Priority priority) + { + WriteLine(Rfc2812.Notice(destination, message), priority); + } + + /// + /// + /// + /// + /// + public void RfcNotice(string destination, string message) + { + WriteLine(Rfc2812.Notice(destination, message)); + } + + /// + /// + /// + /// + /// + public void RfcJoin(string channel, Priority priority) + { + WriteLine(Rfc2812.Join(channel), priority); + } + + /// + /// + /// + /// + public void RfcJoin(string channel) + { + WriteLine(Rfc2812.Join(channel)); + } + + /// + /// + /// + /// + /// + public void RfcJoin(string[] channels, Priority priority) + { + WriteLine(Rfc2812.Join(channels), priority); + } + + /// + /// + /// + /// + public void RfcJoin(string[] channels) + { + WriteLine(Rfc2812.Join(channels)); + } + + /// + /// + /// + /// + /// + /// + public void RfcJoin(string channel, string key, Priority priority) + { + WriteLine(Rfc2812.Join(channel, key), priority); + } + + /// + /// + /// + /// + /// + public void RfcJoin(string channel, string key) + { + WriteLine(Rfc2812.Join(channel, key)); + } + + /// + /// + /// + /// + /// + /// + public void RfcJoin(string[] channels, string[] keys, Priority priority) + { + WriteLine(Rfc2812.Join(channels, keys), priority); + } + + /// + /// + /// + /// + /// + public void RfcJoin(string[] channels, string[] keys) + { + WriteLine(Rfc2812.Join(channels, keys)); + } + + /// + /// + /// + /// + /// + public void RfcPart(string channel, Priority priority) + { + WriteLine(Rfc2812.Part(channel), priority); + } + + /// + /// + /// + /// + public void RfcPart(string channel) + { + WriteLine(Rfc2812.Part(channel)); + } + + /// + /// + /// + /// + /// + public void RfcPart(string[] channels, Priority priority) + { + WriteLine(Rfc2812.Part(channels), priority); + } + + /// + /// + /// + /// + public void RfcPart(string[] channels) + { + WriteLine(Rfc2812.Part(channels)); + } + + /// + /// + /// + /// + /// + /// + public void RfcPart(string channel, string partmessage, Priority priority) + { + WriteLine(Rfc2812.Part(channel, partmessage), priority); + } + + /// + /// + /// + /// + /// + public void RfcPart(string channel, string partmessage) + { + WriteLine(Rfc2812.Part(channel, partmessage)); + } + + /// + /// + /// + /// + /// + /// + public void RfcPart(string[] channels, string partmessage, Priority priority) + { + WriteLine(Rfc2812.Part(channels, partmessage), priority); + } + + /// + /// + /// + /// + /// + public void RfcPart(string[] channels, string partmessage) + { + WriteLine(Rfc2812.Part(channels, partmessage)); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string channel, string nickname, Priority priority) + { + WriteLine(Rfc2812.Kick(channel, nickname), priority); + } + + /// + /// + /// + /// + /// + public void RfcKick(string channel, string nickname) + { + WriteLine(Rfc2812.Kick(channel, nickname)); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string nickname, Priority priority) + { + WriteLine(Rfc2812.Kick(channels, nickname), priority); + } + + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string nickname) + { + WriteLine(Rfc2812.Kick(channels, nickname)); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string channel, string[] nicknames, Priority priority) + { + WriteLine(Rfc2812.Kick(channel, nicknames), priority); + } + + /// + /// + /// + /// + /// + public void RfcKick(string channel, string[] nicknames) + { + WriteLine(Rfc2812.Kick(channel, nicknames)); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string[] nicknames, Priority priority) + { + WriteLine(Rfc2812.Kick(channels, nicknames), priority); + } + + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string[] nicknames) + { + WriteLine(Rfc2812.Kick(channels, nicknames)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcKick(string channel, string nickname, string comment, Priority priority) + { + WriteLine(Rfc2812.Kick(channel, nickname, comment), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string channel, string nickname, string comment) + { + WriteLine(Rfc2812.Kick(channel, nickname, comment)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string nickname, string comment, Priority priority) + { + WriteLine(Rfc2812.Kick(channels, nickname, comment), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string nickname, string comment) + { + WriteLine(Rfc2812.Kick(channels, nickname, comment)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcKick(string channel, string[] nicknames, string comment, Priority priority) + { + WriteLine(Rfc2812.Kick(channel, nicknames, comment), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string channel, string[] nicknames, string comment) + { + WriteLine(Rfc2812.Kick(channel, nicknames, comment)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string[] nicknames, string comment, Priority priority) + { + WriteLine(Rfc2812.Kick(channels, nicknames, comment), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcKick(string[] channels, string[] nicknames, string comment) + { + WriteLine(Rfc2812.Kick(channels, nicknames, comment)); + } + + /// + /// + /// + /// + public void RfcMotd(Priority priority) + { + WriteLine(Rfc2812.Motd(), priority); + } + + /// + /// + /// + public void RfcMotd() + { + WriteLine(Rfc2812.Motd()); + } + + /// + /// + /// + /// + /// + public void RfcMotd(string target, Priority priority) + { + WriteLine(Rfc2812.Motd(target), priority); + } + + /// + /// + /// + /// + public void RfcMotd(string target) + { + WriteLine(Rfc2812.Motd(target)); + } + + /// + /// + /// + /// + [Obsolete("use RfcLusers(Priority) instead")] + public void RfcLuser(Priority priority) + { + RfcLusers(priority); + } + + public void RfcLusers(Priority priority) + { + WriteLine(Rfc2812.Lusers(), priority); + } + + /// + /// + /// + [Obsolete("use RfcLusers() instead")] + public void RfcLuser() + { + RfcLusers(); + } + + public void RfcLusers() + { + WriteLine(Rfc2812.Lusers()); + } + + /// + /// + /// + /// + /// + [Obsolete("use RfcLusers(string, Priority) instead")] + public void RfcLuser(string mask, Priority priority) + { + RfcLusers(mask, priority); + } + + public void RfcLusers(string mask, Priority priority) + { + WriteLine(Rfc2812.Lusers(mask), priority); + } + + /// + /// + /// + /// + [Obsolete("use RfcLusers(string) instead")] + public void RfcLuser(string mask) + { + RfcLusers(mask); + } + + public void RfcLusers(string mask) + { + WriteLine(Rfc2812.Lusers(mask)); + } + + /// + /// + /// + /// + /// + /// + [Obsolete("use RfcLusers(string, string, Priority) instead")] + public void RfcLuser(string mask, string target, Priority priority) + { + RfcLusers(mask, target, priority); + } + + public void RfcLusers(string mask, string target, Priority priority) + { + WriteLine(Rfc2812.Lusers(mask, target), priority); + } + + /// + /// + /// + /// + /// + [Obsolete("use RfcLusers(string, string) instead")] + public void RfcLuser(string mask, string target) + { + RfcLusers(mask, target); + } + + public void RfcLusers(string mask, string target) + { + WriteLine(Rfc2812.Lusers(mask, target)); + } + + /// + /// + /// + /// + public void RfcVersion(Priority priority) + { + WriteLine(Rfc2812.Version(), priority); + } + + /// + /// + /// + public void RfcVersion() + { + WriteLine(Rfc2812.Version()); + } + + /// + /// + /// + /// + /// + public void RfcVersion(string target, Priority priority) + { + WriteLine(Rfc2812.Version(target), priority); + } + + /// + /// + /// + /// + public void RfcVersion(string target) + { + WriteLine(Rfc2812.Version(target)); + } + + /// + /// + /// + /// + public void RfcStats(Priority priority) + { + WriteLine(Rfc2812.Stats(), priority); + } + + /// + /// + /// + public void RfcStats() + { + WriteLine(Rfc2812.Stats()); + } + + /// + /// + /// + /// + /// + public void RfcStats(string query, Priority priority) + { + WriteLine(Rfc2812.Stats(query), priority); + } + + /// + /// + /// + /// + public void RfcStats(string query) + { + WriteLine(Rfc2812.Stats(query)); + } + + /// + /// + /// + /// + /// + /// + public void RfcStats(string query, string target, Priority priority) + { + WriteLine(Rfc2812.Stats(query, target), priority); + } + + /// + /// + /// + /// + /// + public void RfcStats(string query, string target) + { + WriteLine(Rfc2812.Stats(query, target)); + } + + /// + /// + /// + public void RfcLinks() + { + WriteLine(Rfc2812.Links()); + } + + /// + /// + /// + /// + /// + public void RfcLinks(string servermask, Priority priority) + { + WriteLine(Rfc2812.Links(servermask), priority); + } + + /// + /// + /// + /// + public void RfcLinks(string servermask) + { + WriteLine(Rfc2812.Links(servermask)); + } + + /// + /// + /// + /// + /// + /// + public void RfcLinks(string remoteserver, string servermask, Priority priority) + { + WriteLine(Rfc2812.Links(remoteserver, servermask), priority); + } + + /// + /// + /// + /// + /// + public void RfcLinks(string remoteserver, string servermask) + { + WriteLine(Rfc2812.Links(remoteserver, servermask)); + } + + /// + /// + /// + /// + public void RfcTime(Priority priority) + { + WriteLine(Rfc2812.Time(), priority); + } + + /// + /// + /// + public void RfcTime() + { + WriteLine(Rfc2812.Time()); + } + + /// + /// + /// + /// + /// + public void RfcTime(string target, Priority priority) + { + WriteLine(Rfc2812.Time(target), priority); + } + + /// + /// + /// + /// + public void RfcTime(string target) + { + WriteLine(Rfc2812.Time(target)); + } + + /// + /// + /// + /// + /// + /// + public void RfcConnect(string targetserver, string port, Priority priority) + { + WriteLine(Rfc2812.Connect(targetserver, port), priority); + } + + /// + /// + /// + /// + /// + public void RfcConnect(string targetserver, string port) + { + WriteLine(Rfc2812.Connect(targetserver, port)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcConnect(string targetserver, string port, string remoteserver, Priority priority) + { + WriteLine(Rfc2812.Connect(targetserver, port, remoteserver), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcConnect(string targetserver, string port, string remoteserver) + { + WriteLine(Rfc2812.Connect(targetserver, port, remoteserver)); + } + + /// + /// + /// + /// + public void RfcTrace(Priority priority) + { + WriteLine(Rfc2812.Trace(), priority); + } + + /// + /// + /// + public void RfcTrace() + { + WriteLine(Rfc2812.Trace()); + } + + /// + /// + /// + /// + /// + public void RfcTrace(string target, Priority priority) + { + WriteLine(Rfc2812.Trace(target), priority); + } + + /// + /// + /// + /// + public void RfcTrace(string target) + { + WriteLine(Rfc2812.Trace(target)); + } + + /// + /// + /// + /// + public void RfcAdmin(Priority priority) + { + WriteLine(Rfc2812.Admin(), priority); + } + + /// + /// + /// + public void RfcAdmin() + { + WriteLine(Rfc2812.Admin()); + } + + /// + /// + /// + /// + /// + public void RfcAdmin(string target, Priority priority) + { + WriteLine(Rfc2812.Admin(target), priority); + } + + /// + /// + /// + /// + public void RfcAdmin(string target) + { + WriteLine(Rfc2812.Admin(target)); + } + + /// + /// + /// + /// + public void RfcInfo(Priority priority) + { + WriteLine(Rfc2812.Info(), priority); + } + + /// + /// + /// + public void RfcInfo() + { + WriteLine(Rfc2812.Info()); + } + + /// + /// + /// + /// + /// + public void RfcInfo(string target, Priority priority) + { + WriteLine(Rfc2812.Info(target), priority); + } + + /// + /// + /// + /// + public void RfcInfo(string target) + { + WriteLine(Rfc2812.Info(target)); + } + + /// + /// + /// + /// + public void RfcServlist(Priority priority) + { + WriteLine(Rfc2812.Servlist(), priority); + } + + /// + /// + /// + public void RfcServlist() + { + WriteLine(Rfc2812.Servlist()); + } + + /// + /// + /// + /// + /// + public void RfcServlist(string mask, Priority priority) + { + WriteLine(Rfc2812.Servlist(mask), priority); + } + + /// + /// + /// + /// + public void RfcServlist(string mask) + { + WriteLine(Rfc2812.Servlist(mask)); + } + + /// + /// + /// + /// + /// + /// + public void RfcServlist(string mask, string type, Priority priority) + { + WriteLine(Rfc2812.Servlist(mask, type), priority); + } + + /// + /// + /// + /// + /// + public void RfcServlist(string mask, string type) + { + WriteLine(Rfc2812.Servlist(mask, type)); + } + + /// + /// + /// + /// + /// + /// + public void RfcSquery(string servicename, string servicetext, Priority priority) + { + WriteLine(Rfc2812.Squery(servicename, servicetext), priority); + } + + /// + /// + /// + /// + /// + public void RfcSquery(string servicename, string servicetext) + { + WriteLine(Rfc2812.Squery(servicename, servicetext)); + } + + /// + /// + /// + /// + /// + public void RfcList(string channel, Priority priority) + { + WriteLine(Rfc2812.List(channel), priority); + } + + /// + /// + /// + /// + public void RfcList(string channel) + { + WriteLine(Rfc2812.List(channel)); + } + + /// + /// + /// + /// + /// + public void RfcList(string[] channels, Priority priority) + { + WriteLine(Rfc2812.List(channels), priority); + } + + /// + /// + /// + /// + public void RfcList(string[] channels) + { + WriteLine(Rfc2812.List(channels)); + } + + /// + /// + /// + /// + /// + /// + public void RfcList(string channel, string target, Priority priority) + { + WriteLine(Rfc2812.List(channel, target), priority); + } + + /// + /// + /// + /// + /// + public void RfcList(string channel, string target) + { + WriteLine(Rfc2812.List(channel, target)); + } + + /// + /// + /// + /// + /// + /// + public void RfcList(string[] channels, string target, Priority priority) + { + WriteLine(Rfc2812.List(channels, target), priority); + } + + /// + /// + /// + /// + /// + public void RfcList(string[] channels, string target) + { + WriteLine(Rfc2812.List(channels, target)); + } + + /// + /// + /// + /// + /// + public void RfcNames(string channel, Priority priority) + { + WriteLine(Rfc2812.Names(channel), priority); + } + + /// + /// + /// + /// + public void RfcNames(string channel) + { + WriteLine(Rfc2812.Names(channel)); + } + + /// + /// + /// + /// + /// + public void RfcNames(string[] channels, Priority priority) + { + WriteLine(Rfc2812.Names(channels), priority); + } + + /// + /// + /// + /// + public void RfcNames(string[] channels) + { + WriteLine(Rfc2812.Names(channels)); + } + + /// + /// + /// + /// + /// + /// + public void RfcNames(string channel, string target, Priority priority) + { + WriteLine(Rfc2812.Names(channel, target), priority); + } + + /// + /// + /// + /// + /// + public void RfcNames(string channel, string target) + { + WriteLine(Rfc2812.Names(channel, target)); + } + + /// + /// + /// + /// + /// + /// + public void RfcNames(string[] channels, string target, Priority priority) + { + WriteLine(Rfc2812.Names(channels, target), priority); + } + + /// + /// + /// + /// + /// + public void RfcNames(string[] channels, string target) + { + WriteLine(Rfc2812.Names(channels, target)); + } + + /// + /// + /// + /// + /// + public void RfcTopic(string channel, Priority priority) + { + WriteLine(Rfc2812.Topic(channel), priority); + } + + /// + /// + /// + /// + public void RfcTopic(string channel) + { + WriteLine(Rfc2812.Topic(channel)); + } + + /// + /// + /// + /// + /// + /// + public void RfcTopic(string channel, string newtopic, Priority priority) + { + WriteLine(Rfc2812.Topic(channel, newtopic), priority); + } + + /// + /// + /// + /// + /// + public void RfcTopic(string channel, string newtopic) + { + WriteLine(Rfc2812.Topic(channel, newtopic)); + } + + /// + /// + /// + /// + /// + public void RfcMode(string target, Priority priority) + { + WriteLine(Rfc2812.Mode(target), priority); + } + + /// + /// + /// + /// + public void RfcMode(string target) + { + WriteLine(Rfc2812.Mode(target)); + } + + /// + /// + /// + /// + /// + /// + public void RfcMode(string target, string newmode, Priority priority) + { + WriteLine(Rfc2812.Mode(target, newmode), priority); + } + + /// + /// + /// + /// + /// + public void RfcMode(string target, string newmode) + { + WriteLine(Rfc2812.Mode(target, newmode)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcService(string nickname, string distribution, string info, Priority priority) + { + WriteLine(Rfc2812.Service(nickname, distribution, info), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcService(string nickname, string distribution, string info) + { + WriteLine(Rfc2812.Service(nickname, distribution, info)); + } + + /// + /// + /// + /// + /// + /// + public void RfcInvite(string nickname, string channel, Priority priority) + { + WriteLine(Rfc2812.Invite(nickname, channel), priority); + } + + /// + /// + /// + /// + /// + public void RfcInvite(string nickname, string channel) + { + WriteLine(Rfc2812.Invite(nickname, channel)); + } + + /// + /// + /// + /// + /// + public void RfcNick(string newnickname, Priority priority) + { + WriteLine(Rfc2812.Nick(newnickname), priority); + } + + /// + /// + /// + /// + public void RfcNick(string newnickname) + { + WriteLine(Rfc2812.Nick(newnickname)); + } + + /// + /// + /// + /// + public void RfcWho(Priority priority) + { + WriteLine(Rfc2812.Who(), priority); + } + + /// + /// + /// + public void RfcWho() + { + WriteLine(Rfc2812.Who()); + } + + /// + /// + /// + /// + /// + public void RfcWho(string mask, Priority priority) + { + WriteLine(Rfc2812.Who(mask), priority); + } + + /// + /// + /// + /// + public void RfcWho(string mask) + { + WriteLine(Rfc2812.Who(mask)); + } + + /// + /// + /// + /// + /// + /// + public void RfcWho(string mask, bool ircop, Priority priority) + { + WriteLine(Rfc2812.Who(mask, ircop), priority); + } + + /// + /// + /// + /// + /// + public void RfcWho(string mask, bool ircop) + { + WriteLine(Rfc2812.Who(mask, ircop)); + } + + /// + /// + /// + /// + /// + public void RfcWhois(string mask, Priority priority) + { + WriteLine(Rfc2812.Whois(mask), priority); + } + + /// + /// + /// + /// + public void RfcWhois(string mask) + { + WriteLine(Rfc2812.Whois(mask)); + } + + /// + /// + /// + /// + /// + public void RfcWhois(string[] masks, Priority priority) + { + WriteLine(Rfc2812.Whois(masks), priority); + } + + /// + /// + /// + /// + public void RfcWhois(string[] masks) + { + WriteLine(Rfc2812.Whois(masks)); + } + + /// + /// + /// + /// + /// + /// + public void RfcWhois(string target, string mask, Priority priority) + { + WriteLine(Rfc2812.Whois(target, mask), priority); + } + + /// + /// + /// + /// + /// + public void RfcWhois(string target, string mask) + { + WriteLine(Rfc2812.Whois(target, mask)); + } + + /// + /// + /// + /// + /// + /// + public void RfcWhois(string target, string[] masks, Priority priority) + { + WriteLine(Rfc2812.Whois(target ,masks), priority); + } + + /// + /// + /// + /// + /// + public void RfcWhois(string target, string[] masks) + { + WriteLine(Rfc2812.Whois(target, masks)); + } + + /// + /// + /// + /// + /// + public void RfcWhowas(string nickname, Priority priority) + { + WriteLine(Rfc2812.Whowas(nickname), priority); + } + + /// + /// + /// + /// + public void RfcWhowas(string nickname) + { + WriteLine(Rfc2812.Whowas(nickname)); + } + + /// + /// + /// + /// + /// + public void RfcWhowas(string[] nicknames, Priority priority) + { + WriteLine(Rfc2812.Whowas(nicknames), priority); + } + + /// + /// + /// + /// + public void RfcWhowas(string[] nicknames) + { + WriteLine(Rfc2812.Whowas(nicknames)); + } + + /// + /// + /// + /// + /// + /// + public void RfcWhowas(string nickname, string count, Priority priority) + { + WriteLine(Rfc2812.Whowas(nickname, count), priority); + } + + /// + /// + /// + /// + /// + public void RfcWhowas(string nickname, string count) + { + WriteLine(Rfc2812.Whowas(nickname, count)); + } + + /// + /// + /// + /// + /// + /// + public void RfcWhowas(string[] nicknames, string count, Priority priority) + { + WriteLine(Rfc2812.Whowas(nicknames, count), priority); + } + + /// + /// + /// + /// + /// + public void RfcWhowas(string[] nicknames, string count) + { + WriteLine(Rfc2812.Whowas(nicknames, count)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcWhowas(string nickname, string count, string target, Priority priority) + { + WriteLine(Rfc2812.Whowas(nickname, count, target), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcWhowas(string nickname, string count, string target) + { + WriteLine(Rfc2812.Whowas(nickname, count, target)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcWhowas(string[] nicknames, string count, string target, Priority priority) + { + WriteLine(Rfc2812.Whowas(nicknames, count, target), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcWhowas(string[] nicknames, string count, string target) + { + WriteLine(Rfc2812.Whowas(nicknames, count, target)); + } + + /// + /// + /// + /// + /// + /// + public void RfcKill(string nickname, string comment, Priority priority) + { + WriteLine(Rfc2812.Kill(nickname, comment), priority); + } + + /// + /// + /// + /// + /// + public void RfcKill(string nickname, string comment) + { + WriteLine(Rfc2812.Kill(nickname, comment)); + } + + /// + /// + /// + /// + /// + public void RfcPing(string server, Priority priority) + { + WriteLine(Rfc2812.Ping(server), priority); + } + + /// + /// + /// + /// + public void RfcPing(string server) + { + WriteLine(Rfc2812.Ping(server)); + } + + /// + /// + /// + /// + /// + /// + public void RfcPing(string server, string server2, Priority priority) + { + WriteLine(Rfc2812.Ping(server, server2), priority); + } + + /// + /// + /// + /// + /// + public void RfcPing(string server, string server2) + { + WriteLine(Rfc2812.Ping(server, server2)); + } + + /// + /// + /// + /// + /// + public void RfcPong(string server, Priority priority) + { + WriteLine(Rfc2812.Pong(server), priority); + } + + /// + /// + /// + /// + public void RfcPong(string server) + { + WriteLine(Rfc2812.Pong(server)); + } + + /// + /// + /// + /// + /// + /// + public void RfcPong(string server, string server2, Priority priority) + { + WriteLine(Rfc2812.Pong(server, server2), priority); + } + + /// + /// + /// + /// + /// + public void RfcPong(string server, string server2) + { + WriteLine(Rfc2812.Pong(server, server2)); + } + + /// + /// + /// + /// + public void RfcAway(Priority priority) + { + WriteLine(Rfc2812.Away(), priority); + } + + /// + /// + /// + public void RfcAway() + { + WriteLine(Rfc2812.Away()); + } + + /// + /// + /// + /// + /// + public void RfcAway(string awaytext, Priority priority) + { + WriteLine(Rfc2812.Away(awaytext), priority); + } + + /// + /// + /// + /// + public void RfcAway(string awaytext) + { + WriteLine(Rfc2812.Away(awaytext)); + } + + /// + /// + /// + public void RfcRehash() + { + WriteLine(Rfc2812.Rehash()); + } + + /// + /// + /// + public void RfcDie() + { + WriteLine(Rfc2812.Die()); + } + + /// + /// + /// + public void RfcRestart() + { + WriteLine(Rfc2812.Restart()); + } + + /// + /// + /// + /// + /// + public void RfcSummon(string user, Priority priority) + { + WriteLine(Rfc2812.Summon(user), priority); + } + + /// + /// + /// + /// + public void RfcSummon(string user) + { + WriteLine(Rfc2812.Summon(user)); + } + + /// + /// + /// + /// + /// + /// + public void RfcSummon(string user, string target, Priority priority) + { + WriteLine(Rfc2812.Summon(user, target), priority); + } + + /// + /// + /// + /// + /// + public void RfcSummon(string user, string target) + { + WriteLine(Rfc2812.Summon(user, target)); + } + + /// + /// + /// + /// + /// + /// + /// + public void RfcSummon(string user, string target, string channel, Priority priority) + { + WriteLine(Rfc2812.Summon(user, target, channel), priority); + } + + /// + /// + /// + /// + /// + /// + public void RfcSummon(string user, string target, string channel) + { + WriteLine(Rfc2812.Summon(user, target, channel)); + } + + /// + /// + /// + /// + public void RfcUsers(Priority priority) + { + WriteLine(Rfc2812.Users(), priority); + } + + /// + /// + /// + public void RfcUsers() + { + WriteLine(Rfc2812.Users()); + } + + /// + /// + /// + /// + /// + public void RfcUsers(string target, Priority priority) + { + WriteLine(Rfc2812.Users(target), priority); + } + + /// + /// + /// + /// + public void RfcUsers(string target) + { + WriteLine(Rfc2812.Users(target)); + } + + /// + /// + /// + /// + /// + public void RfcWallops(string wallopstext, Priority priority) + { + WriteLine(Rfc2812.Wallops(wallopstext), priority); + } + + /// + /// + /// + /// + public void RfcWallops(string wallopstext) + { + WriteLine(Rfc2812.Wallops(wallopstext)); + } + + /// + /// + /// + /// + /// + public void RfcUserhost(string nickname, Priority priority) + { + WriteLine(Rfc2812.Userhost(nickname), priority); + } + + /// + /// + /// + /// + public void RfcUserhost(string nickname) + { + WriteLine(Rfc2812.Userhost(nickname)); + } + + /// + /// + /// + /// + /// + public void RfcUserhost(string[] nicknames, Priority priority) + { + WriteLine(Rfc2812.Userhost(nicknames), priority); + } + + /// + /// + /// + /// + public void RfcUserhost(string[] nicknames) + { + WriteLine(Rfc2812.Userhost(nicknames)); + } + + /// + /// + /// + /// + /// + public void RfcIson(string nickname, Priority priority) + { + WriteLine(Rfc2812.Ison(nickname), priority); + } + + /// + /// + /// + /// + public void RfcIson(string nickname) + { + WriteLine(Rfc2812.Ison(nickname)); + } + + /// + /// + /// + /// + /// + public void RfcIson(string[] nicknames, Priority priority) + { + WriteLine(Rfc2812.Ison(nicknames), priority); + } + + /// + /// + /// + /// + public void RfcIson(string[] nicknames) + { + WriteLine(Rfc2812.Ison(nicknames)); + } + + /// + /// + /// + /// + public void RfcQuit(Priority priority) + { + WriteLine(Rfc2812.Quit(), priority); + } + + /// + /// + /// + public void RfcQuit() + { + WriteLine(Rfc2812.Quit()); + } + + public void RfcQuit(string quitmessage, Priority priority) + { + WriteLine(Rfc2812.Quit(quitmessage), priority); + } + + /// + /// + /// + /// + public void RfcQuit(string quitmessage) + { + WriteLine(Rfc2812.Quit(quitmessage)); + } + + /// + /// + /// + /// + /// + /// + public void RfcSquit(string server, string comment, Priority priority) + { + WriteLine(Rfc2812.Squit(server, comment), priority); + } + + /// + /// + /// + /// + /// + public void RfcSquit(string server, string comment) + { + WriteLine(Rfc2812.Squit(server, comment)); + } +#endregion + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcCommands/Rfc2812.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcCommands/Rfc2812.cs new file mode 100644 index 0000000..90bff67 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcCommands/Rfc2812.cs @@ -0,0 +1,666 @@ +/* + * $Id: Rfc2812.cs 288 2008-07-28 21:56:47Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcCommands/Rfc2812.cs $ + * $Rev: 288 $ + * $Author: meebey $ + * $Date: 2008-07-28 23:56:47 +0200 (Mon, 28 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Text; +using System.Globalization; +using System.Text.RegularExpressions; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + public sealed class Rfc2812 + { + // nickname = ( letter / special ) *8( letter / digit / special / "-" ) + // letter = %x41-5A / %x61-7A ; A-Z / a-z + // digit = %x30-39 ; 0-9 + // special = %x5B-60 / %x7B-7D + // ; "[", "]", "\", "`", "_", "^", "{", "|", "}" + private static Regex _NicknameRegex = new Regex(@"^[A-Za-z\[\]\\`_^{|}][A-Za-z0-9\[\]\\`_\-^{|}]+$", RegexOptions.Compiled); + + private Rfc2812() + { + } + + /// + /// Checks if the passed nickname is valid according to the RFC + /// + /// Use with caution, many IRC servers are not conform with this! + /// + public static bool IsValidNickname(string nickname) + { + if ((nickname != null) && + (nickname.Length > 0) && + (_NicknameRegex.Match(nickname).Success)) { + return true; + } + + return false; + } + + public static string Pass(string password) + { + return "PASS "+password; + } + + public static string Nick(string nickname) + { + return "NICK "+nickname; + } + + public static string User(string username, int usermode, string realname) + { + return "USER "+username+" "+usermode.ToString()+" * :"+realname; + } + + public static string Oper(string name, string password) + { + return "OPER "+name+" "+password; + } + + public static string Privmsg(string destination, string message) + { + return "PRIVMSG "+destination+" :"+message; + } + + public static string Notice(string destination, string message) + { + return "NOTICE "+destination+" :"+message; + } + + public static string Join(string channel) + { + return "JOIN "+channel; + } + + public static string Join(string[] channels) + { + string channellist = String.Join(",", channels); + return "JOIN "+channellist; + } + + public static string Join(string channel, string key) + { + return "JOIN "+channel+" "+key; + } + + public static string Join(string[] channels, string[] keys) + { + string channellist = String.Join(",", channels); + string keylist = String.Join(",", keys); + return "JOIN "+channellist+" "+keylist; + } + + public static string Part(string channel) + { + return "PART "+channel; + } + + public static string Part(string[] channels) + { + string channellist = String.Join(",", channels); + return "PART "+channellist; + } + + public static string Part(string channel, string partmessage) + { + return "PART "+channel+" :"+partmessage; + } + + public static string Part(string[] channels, string partmessage) + { + string channellist = String.Join(",", channels); + return "PART "+channellist+" :"+partmessage; + } + + public static string Kick(string channel, string nickname) + { + return "KICK "+channel+" "+nickname; + } + + public static string Kick(string channel, string nickname, string comment) + { + return "KICK "+channel+" "+nickname+" :"+comment; + } + + public static string Kick(string[] channels, string nickname) + { + string channellist = String.Join(",", channels); + return "KICK "+channellist+" "+nickname; + } + + public static string Kick(string[] channels, string nickname, string comment) + { + string channellist = String.Join(",", channels); + return "KICK "+channellist+" "+nickname+" :"+comment; + } + + public static string Kick(string channel, string[] nicknames) + { + string nicknamelist = String.Join(",", nicknames); + return "KICK "+channel+" "+nicknamelist; + } + + public static string Kick(string channel, string[] nicknames, string comment) + { + string nicknamelist = String.Join(",", nicknames); + return "KICK "+channel+" "+nicknamelist+" :"+comment; + } + + public static string Kick(string[] channels, string[] nicknames) + { + string channellist = String.Join(",", channels); + string nicknamelist = String.Join(",", nicknames); + return "KICK "+channellist+" "+nicknamelist; + } + + public static string Kick(string[] channels, string[] nicknames, string comment) + { + string channellist = String.Join(",", channels); + string nicknamelist = String.Join(",", nicknames); + return "KICK "+channellist+" "+nicknamelist+" :"+comment; + } + + public static string Motd() + { + return "MOTD"; + } + + public static string Motd(string target) + { + return "MOTD "+target; + } + + [Obsolete("use Lusers() method instead")] + public static string Luser() + { + return Lusers(); + } + + public static string Lusers() + { + return "LUSERS"; + } + + [Obsolete("use Lusers(string) method instead")] + public static string Luser(string mask) + { + return Lusers(mask); + } + + public static string Lusers(string mask) + { + return "LUSER "+mask; + } + + [Obsolete("use Lusers(string, string) method instead")] + public static string Luser(string mask, string target) + { + return Lusers(mask, target); + } + + public static string Lusers(string mask, string target) + { + return "LUSER "+mask+" "+target; + } + + public static string Version() + { + return "VERSION"; + } + + public static string Version(string target) + { + return "VERSION "+target; + } + + public static string Stats() + { + return "STATS"; + } + + public static string Stats(string query) + { + return "STATS "+query; + } + + public static string Stats(string query, string target) + { + return "STATS "+query+" "+target; + } + + public static string Links() + { + return "LINKS"; + } + + public static string Links(string servermask) + { + return "LINKS "+servermask; + } + + public static string Links(string remoteserver, string servermask) + { + return "LINKS "+remoteserver+" "+servermask; + } + + public static string Time() + { + return "TIME"; + } + + public static string Time(string target) + { + return "TIME "+target; + } + + public static string Connect(string targetserver, string port) + { + return "CONNECT "+targetserver+" "+port; + } + + public static string Connect(string targetserver, string port, string remoteserver) + { + return "CONNECT "+targetserver+" "+port+" "+remoteserver; + } + + public static string Trace() + { + return "TRACE"; + } + + public static string Trace(string target) + { + return "TRACE "+target; + } + + public static string Admin() + { + return "ADMIN"; + } + + public static string Admin(string target) + { + return "ADMIN "+target; + } + + public static string Info() + { + return "INFO"; + } + + public static string Info(string target) + { + return "INFO "+target; + } + + public static string Servlist() + { + return "SERVLIST"; + } + + public static string Servlist(string mask) + { + return "SERVLIST "+mask; + } + + public static string Servlist(string mask, string type) + { + return "SERVLIST "+mask+" "+type; + } + + public static string Squery(string servicename, string servicetext) + { + return "SQUERY "+servicename+" :"+servicetext; + } + + public static string List() + { + return "LIST"; + } + + public static string List(string channel) + { + return "LIST "+channel; + } + + public static string List(string[] channels) + { + string channellist = String.Join(",", channels); + return "LIST "+channellist; + } + + public static string List(string channel, string target) + { + return "LIST "+channel+" "+target; + } + + public static string List(string[] channels, string target) + { + string channellist = String.Join(",", channels); + return "LIST "+channellist+" "+target; + } + + public static string Names() + { + return "NAMES"; + } + + public static string Names(string channel) + { + return "NAMES "+channel; + } + + public static string Names(string[] channels) + { + string channellist = String.Join(",", channels); + return "NAMES "+channellist; + } + + public static string Names(string channel, string target) + { + return "NAMES "+channel+" "+target; + } + + public static string Names(string[] channels, string target) + { + string channellist = String.Join(",", channels); + return "NAMES "+channellist+" "+target; + } + + public static string Topic(string channel) + { + return "TOPIC "+channel; + } + + public static string Topic(string channel, string newtopic) + { + return "TOPIC "+channel+" :"+newtopic; + } + + public static string Mode(string target) + { + return "MODE "+target; + } + + public static string Mode(string target, string newmode) + { + return "MODE "+target+" "+newmode; + } + + /* + public static string Mode(string target, string[] newModes, string[] newModeParameters) + { + if (newModes == null) { + throw new ArgumentNullException("newModes"); + } + if (newModeParameters == null) { + throw new ArgumentNullException("newModeParameters"); + } + if (newModes.Length != newModeParameters.Length) { + throw new ArgumentException("newModes and modeParameters must have the same size."); + } + + StringBuilder newMode = new StringBuilder(newModes.Length); + StringBuilder newModeParameter = new StringBuilder(); + // as per RFC 3.2.3, maximum is 3 modes changes at once + int maxModeChanges = 3; + if (newModes.Length > maxModeChanges) { + throw new ArgumentOutOfRangeException( + "newModes.Length", + newModes.Length, + String.Format("Mode change list is too large (> {0}).", maxModeChanges) + ); + } + + for (int i = 0; i < newModes.Length; i += maxModeChanges) { + for (int j = 0; j < maxModeChanges; j++) { + newMode.Append(newModes[i + j]); + } + + for (int j = 0; j < maxModeChanges; j++) { + newModeParameter.Append(newModeParameters[i + j]); + } + } + newMode.Append(" "); + newMode.Append(newModeParameter.ToString()); + + return Mode(target, newMode.ToString()); + } + */ + + public static string Service(string nickname, string distribution, string info) + { + return "SERVICE "+nickname+" * "+distribution+" * * :"+info; + } + + public static string Invite(string nickname, string channel) + { + return "INVITE "+nickname+" "+channel; + } + + public static string Who() + { + return "WHO"; + } + + public static string Who(string mask) + { + return "WHO "+mask; + } + + public static string Who(string mask, bool ircop) + { + if (ircop) { + return "WHO "+mask+" o"; + } else { + return "WHO "+mask; + } + } + + public static string Whois(string mask) + { + return "WHOIS "+mask; + } + + public static string Whois(string[] masks) + { + string masklist = String.Join(",", masks); + return "WHOIS "+masklist; + } + + public static string Whois(string target, string mask) + { + return "WHOIS "+target+" "+mask; + } + + public static string Whois(string target, string[] masks) + { + string masklist = String.Join(",", masks); + return "WHOIS "+target+" "+masklist; + } + + public static string Whowas(string nickname) + { + return "WHOWAS "+nickname; + } + + public static string Whowas(string[] nicknames) + { + string nicknamelist = String.Join(",", nicknames); + return "WHOWAS "+nicknamelist; + } + + public static string Whowas(string nickname, string count) + { + return "WHOWAS "+nickname+" "+count+" "; + } + + public static string Whowas(string[] nicknames, string count) + { + string nicknamelist = String.Join(",", nicknames); + return "WHOWAS "+nicknamelist+" "+count+" "; + } + + public static string Whowas(string nickname, string count, string target) + { + return "WHOWAS "+nickname+" "+count+" "+target; + } + + public static string Whowas(string[] nicknames, string count, string target) + { + string nicknamelist = String.Join(",", nicknames); + return "WHOWAS "+nicknamelist+" "+count+" "+target; + } + + public static string Kill(string nickname, string comment) + { + return "KILL "+nickname+" :"+comment; + } + + public static string Ping(string server) + { + return "PING "+server; + } + + public static string Ping(string server, string server2) + { + return "PING "+server+" "+server2; + } + + public static string Pong(string server) + { + return "PONG "+server; + } + + public static string Pong(string server, string server2) + { + return "PONG "+server+" "+server2; + } + + public static string Error(string errormessage) + { + return "ERROR :"+errormessage; + } + + public static string Away() + { + return "AWAY"; + } + + public static string Away(string awaytext) + { + return "AWAY :"+awaytext; + } + + public static string Rehash() + { + return "REHASH"; + } + + public static string Die() + { + return "DIE"; + } + + public static string Restart() + { + return "RESTART"; + } + + public static string Summon(string user) + { + return "SUMMON "+user; + } + + public static string Summon(string user, string target) + { + return "SUMMON "+user+" "+target; + } + + public static string Summon(string user, string target, string channel) + { + return "SUMMON "+user+" "+target+" "+channel; + } + + public static string Users() + { + return "USERS"; + } + + public static string Users(string target) + { + return "USERS "+target; + } + + public static string Wallops(string wallopstext) + { + return "WALLOPS :"+wallopstext; + } + + public static string Userhost(string nickname) + { + return "USERHOST "+nickname; + } + + public static string Userhost(string[] nicknames) + { + string nicknamelist = String.Join(" ", nicknames); + return "USERHOST "+nicknamelist; + } + + public static string Ison(string nickname) + { + return "ISON "+nickname; + } + + public static string Ison(string[] nicknames) + { + string nicknamelist = String.Join(" ", nicknames); + return "ISON "+nicknamelist; + } + + public static string Quit() + { + return "QUIT"; + } + + public static string Quit(string quitmessage) + { + return "QUIT :"+quitmessage; + } + + public static string Squit(string server, string comment) + { + return "SQUIT "+server+" :"+comment; + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/Delegates.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/Delegates.cs new file mode 100644 index 0000000..6474847 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/Delegates.cs @@ -0,0 +1,34 @@ +/* + * $Id: Delegates.cs 201 2005-06-09 17:06:22Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcConnection/Delegates.cs $ + * $Rev: 201 $ + * $Author: meebey $ + * $Date: 2005-06-09 19:06:22 +0200 (Thu, 09 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +namespace Meebey.SmartIrc4net +{ + public delegate void ReadLineEventHandler(object sender, ReadLineEventArgs e); + public delegate void WriteLineEventHandler(object sender, WriteLineEventArgs e); + public delegate void AutoConnectErrorEventHandler(object sender, AutoConnectErrorEventArgs e); +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/EventArgs.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/EventArgs.cs new file mode 100644 index 0000000..1c76b5b --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/EventArgs.cs @@ -0,0 +1,106 @@ +/* + * $Id: EventArgs.cs 200 2005-06-09 16:54:31Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcConnection/EventArgs.cs $ + * $Rev: 200 $ + * $Author: meebey $ + * $Date: 2005-06-09 18:54:31 +0200 (Thu, 09 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.Collections.Specialized; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + public class ReadLineEventArgs : EventArgs + { + private string _Line; + + public string Line { + get { + return _Line; + } + } + + internal ReadLineEventArgs(string line) + { + _Line = line; + } + } + + /// + /// + /// + public class WriteLineEventArgs : EventArgs + { + private string _Line; + + public string Line { + get { + return _Line; + } + } + + internal WriteLineEventArgs(string line) + { + _Line = line; + } + } + + /// + /// + /// + public class AutoConnectErrorEventArgs : EventArgs + { + private Exception _Exception; + private string _Address; + private int _Port; + + public Exception Exception { + get { + return _Exception; + } + } + + public string Address { + get { + return _Address; + } + } + + public int Port { + get { + return _Port; + } + } + + internal AutoConnectErrorEventArgs(string address, int port, Exception ex) + { + _Address = address; + _Port = port; + _Exception = ex; + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcConnection.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcConnection.cs new file mode 100644 index 0000000..1500ee9 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcConnection.cs @@ -0,0 +1,1273 @@ +/* + * $Id: IrcConnection.cs 280 2008-07-17 17:00:56Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcConnection/IrcConnection.cs $ + * $Rev: 280 $ + * $Author: meebey $ + * $Date: 2008-07-17 19:00:56 +0200 (Thu, 17 Jul 2008) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.IO; +using System.Text; +using System.Collections; +using System.Threading; +using System.Reflection; +using System.Net.Sockets; +#if NET_2_0 +using System.Net.Security; +#endif + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + public class IrcConnection + { + private string _VersionNumber; + private string _VersionString; + private string[] _AddressList = {"localhost"}; + private int _CurrentAddress; + private int _Port; +#if NET_2_0 + private bool _UseSsl; +#endif + private StreamReader _Reader; + private StreamWriter _Writer; + private ReadThread _ReadThread; + private WriteThread _WriteThread; + private IdleWorkerThread _IdleWorkerThread; + private IrcTcpClient _TcpClient; + private Hashtable _SendBuffer = Hashtable.Synchronized(new Hashtable()); + private int _SendDelay = 200; + private bool _IsRegistered; + private bool _IsConnected; + private bool _IsConnectionError; + private bool _IsDisconnecting; + private int _ConnectTries; + private bool _AutoRetry; + private int _AutoRetryDelay = 30; + private bool _AutoReconnect; + private Encoding _Encoding = Encoding.Default; + private int _SocketReceiveTimeout = 600; + private int _SocketSendTimeout = 600; + private int _IdleWorkerInterval = 60; + private int _PingInterval = 60; + private int _PingTimeout = 300; + private DateTime _LastPingSent; + private DateTime _LastPongReceived; + private TimeSpan _Lag; + + /// + /// Raised when a \r\n terminated line is read from the socket + /// + public event ReadLineEventHandler OnReadLine; + /// + /// Raised when a \r\n terminated line is written to the socket + /// + public event WriteLineEventHandler OnWriteLine; + /// + /// Raised before the connect attempt + /// + public event EventHandler OnConnecting; + /// + /// Raised on successful connect + /// + public event EventHandler OnConnected; + /// + /// Raised before the connection is closed + /// + public event EventHandler OnDisconnecting; + /// + /// Raised when the connection is closed + /// + public event EventHandler OnDisconnected; + /// + /// Raised when the connection got into an error state + /// + public event EventHandler OnConnectionError; + /// + /// Raised when the connection got into an error state during auto connect loop + /// + public event AutoConnectErrorEventHandler OnAutoConnectError; + + /// + /// When a connection error is detected this property will return true + /// + protected bool IsConnectionError { + get { + lock (this) { + return _IsConnectionError; + } + } + set { + lock (this) { + _IsConnectionError = value; + } + } + } + + protected bool IsDisconnecting { + get { + lock (this) { + return _IsDisconnecting; + } + } + set { + lock (this) { + _IsDisconnecting = value; + } + } + } + + /// + /// Gets the current address of the connection + /// + public string Address { + get { + return _AddressList[_CurrentAddress]; + } + } + + /// + /// Gets the address list of the connection + /// + public string[] AddressList { + get { + return _AddressList; + } + } + + /// + /// Gets the used port of the connection + /// + public int Port { + get { + return _Port; + } + } + + /// + /// By default nothing is done when the library looses the connection + /// to the server. + /// Default: false + /// + /// + /// true, if the library should reconnect on lost connections + /// false, if the library should not take care of it + /// + public bool AutoReconnect { + get { + return _AutoReconnect; + } + set { +#if LOG4NET + if (value) { + Logger.Connection.Info("AutoReconnect enabled"); + } else { + Logger.Connection.Info("AutoReconnect disabled"); + } +#endif + _AutoReconnect = value; + } + } + + /// + /// If the library should retry to connect when the connection fails. + /// Default: false + /// + /// + /// true, if the library should retry to connect + /// false, if the library should not retry + /// + public bool AutoRetry { + get { + return _AutoRetry; + } + set { +#if LOG4NET + if (value) { + Logger.Connection.Info("AutoRetry enabled"); + } else { + Logger.Connection.Info("AutoRetry disabled"); + } +#endif + _AutoRetry = value; + } + } + + /// + /// Delay between retry attempts in Connect() in seconds. + /// Default: 30 + /// + public int AutoRetryDelay { + get { + return _AutoRetryDelay; + } + set { + _AutoRetryDelay = value; + } + } + + /// + /// To prevent flooding the IRC server, it's required to delay each + /// message, given in milliseconds. + /// Default: 200 + /// + public int SendDelay { + get { + return _SendDelay; + } + set { + _SendDelay = value; + } + } + + /// + /// On successful registration on the IRC network, this is set to true. + /// + public bool IsRegistered { + get { + return _IsRegistered; + } + } + + /// + /// On successful connect to the IRC server, this is set to true. + /// + public bool IsConnected { + get { + return _IsConnected; + } + } + + /// + /// Gets the SmartIrc4net version number + /// + public string VersionNumber { + get { + return _VersionNumber; + } + } + + /// + /// Gets the full SmartIrc4net version string + /// + public string VersionString { + get { + return _VersionString; + } + } + + /// + /// Encoding which is used for reading and writing to the socket + /// Default: encoding of the system + /// + public Encoding Encoding { + get { + return _Encoding; + } + set { + _Encoding = value; + } + } + +#if NET_2_0 + /// + /// Enables/disables using SSL for the connection + /// Default: false + /// + public bool UseSsl { + get { + return _UseSsl; + } + set { + _UseSsl = value; + } + } +#endif + + /// + /// Timeout in seconds for receiving data from the socket + /// Default: 600 + /// + public int SocketReceiveTimeout { + get { + return _SocketReceiveTimeout; + } + set { + _SocketReceiveTimeout = value; + } + } + + /// + /// Timeout in seconds for sending data to the socket + /// Default: 600 + /// + public int SocketSendTimeout { + get { + return _SocketSendTimeout; + } + set { + _SocketSendTimeout = value; + } + } + + /// + /// Interval in seconds to run the idle worker + /// Default: 60 + /// + public int IdleWorkerInterval { + get { + return _IdleWorkerInterval; + } + set { + _IdleWorkerInterval = value; + } + } + + /// + /// Interval in seconds to send a PING + /// Default: 60 + /// + public int PingInterval { + get { + return _PingInterval; + } + set { + _PingInterval = value; + } + } + + /// + /// Timeout in seconds for server response to a PING + /// Default: 600 + /// + public int PingTimeout { + get { + return _PingTimeout; + } + set { + _PingTimeout = value; + } + } + + /// + /// Latency between client and the server + /// + public TimeSpan Lag { + get { + if (_LastPingSent > _LastPongReceived) { + // there is an outstanding ping, thus we don't have a current lag value + return DateTime.Now - _LastPingSent; + } + + return _Lag; + } + } + + /// + /// Initializes the message queues, read and write thread + /// + public IrcConnection() + { +#if LOG4NET + Logger.Init(); + Logger.Main.Debug("IrcConnection created"); +#endif + _SendBuffer[Priority.High] = Queue.Synchronized(new Queue()); + _SendBuffer[Priority.AboveMedium] = Queue.Synchronized(new Queue()); + _SendBuffer[Priority.Medium] = Queue.Synchronized(new Queue()); + _SendBuffer[Priority.BelowMedium] = Queue.Synchronized(new Queue()); + _SendBuffer[Priority.Low] = Queue.Synchronized(new Queue()); + + // setup own callbacks + OnReadLine += new ReadLineEventHandler(_SimpleParser); + OnConnectionError += new EventHandler(_OnConnectionError); + + _ReadThread = new ReadThread(this); + _WriteThread = new WriteThread(this); + _IdleWorkerThread = new IdleWorkerThread(this); + + Assembly assm = Assembly.GetAssembly(this.GetType()); + AssemblyName assm_name = assm.GetName(false); + + AssemblyProductAttribute pr = (AssemblyProductAttribute)assm.GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0]; + + _VersionNumber = assm_name.Version.ToString(); + _VersionString = pr.Product+" "+_VersionNumber; + } + +#if LOG4NET + ~IrcConnection() + { + Logger.Main.Debug("IrcConnection destroyed"); + } +#endif + + /// this method has 2 overloads + /// + /// Connects to the specified server and port, when the connection fails + /// the next server in the list will be used. + /// + /// List of servers to connect to + /// Portnumber to connect to + /// The connection failed + /// If there is already an active connection + public void Connect(string[] addresslist, int port) + { + if (_IsConnected) { + throw new AlreadyConnectedException("Already connected to: " + Address + ":" + Port); + } + + _ConnectTries++; +#if LOG4NET + Logger.Connection.Info(String.Format("connecting... (attempt: {0})", + _ConnectTries)); +#endif + _AddressList = (string[])addresslist.Clone(); + _Port = port; + + if (OnConnecting != null) { + OnConnecting(this, EventArgs.Empty); + } + try { + System.Net.IPAddress ip = System.Net.Dns.Resolve(Address).AddressList[0]; + _TcpClient = new IrcTcpClient(); + _TcpClient.NoDelay = true; + _TcpClient.Socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 1); + // set timeout, after this the connection will be aborted + _TcpClient.ReceiveTimeout = _SocketReceiveTimeout * 1000; + _TcpClient.SendTimeout = _SocketSendTimeout * 1000; + _TcpClient.Connect(ip, port); + + Stream stream = _TcpClient.GetStream(); +#if NET_2_0 + if (_UseSsl) { + SslStream sslStream = new SslStream(stream, false, delegate { + return true; + }); + sslStream.AuthenticateAsClient(Address); + stream = sslStream; + } +#endif + _Reader = new StreamReader(stream, _Encoding); + _Writer = new StreamWriter(stream, _Encoding); + + if (_Encoding.GetPreamble().Length > 0) { + // HACK: we have an encoding that has some kind of preamble + // like UTF-8 has a BOM, this will confuse the IRCd! + // Thus we send a \r\n so the IRCd can safely ignore that + // garbage. + _Writer.WriteLine(); + } + + // Connection was succeful, reseting the connect counter + _ConnectTries = 0; + + // updating the connection error state, so connecting is possible again + IsConnectionError = false; + _IsConnected = true; + + // lets power up our threads + _ReadThread.Start(); + _WriteThread.Start(); + _IdleWorkerThread.Start(); + +#if LOG4NET + Logger.Connection.Info("connected"); +#endif + if (OnConnected != null) { + OnConnected(this, EventArgs.Empty); + } + } catch (Exception e) { + if (_Reader != null) { + try { + _Reader.Close(); + } catch (ObjectDisposedException) { + } + } + if (_Writer != null) { + try { + _Writer.Close(); + } catch (ObjectDisposedException) { + } + } + if (_TcpClient != null) { + _TcpClient.Close(); + } + _IsConnected = false; + IsConnectionError = true; + +#if LOG4NET + Logger.Connection.Info("connection failed: "+e.Message); +#endif + if (_AutoRetry && + _ConnectTries <= 3) { + if (OnAutoConnectError != null) { + OnAutoConnectError(this, new AutoConnectErrorEventArgs(Address, Port, e)); + } +#if LOG4NET + Logger.Connection.Debug("delaying new connect attempt for "+_AutoRetryDelay+" sec"); +#endif + Thread.Sleep(_AutoRetryDelay * 1000); + _NextAddress(); + Connect(_AddressList, _Port); + } else { + throw new CouldNotConnectException("Could not connect to: "+Address+":"+Port+" "+e.Message, e); + } + } + } + + /// + /// Connects to the specified server and port. + /// + /// Server address to connect to + /// Port number to connect to + public void Connect(string address, int port) + { + Connect(new string[] { address }, port); + } + + /// + /// Reconnects to the server + /// + /// + /// If there was no active connection + /// + /// + /// The connection failed + /// + /// + /// If there is already an active connection + /// + public void Reconnect() + { +#if LOG4NET + Logger.Connection.Info("reconnecting..."); +#endif + Disconnect(); + Connect(_AddressList, _Port); + } + + /// + /// Disconnects from the server + /// + /// + /// If there was no active connection + /// + public void Disconnect() + { + if (!IsConnected) { + throw new NotConnectedException("The connection could not be disconnected because there is no active connection"); + } + +#if LOG4NET + Logger.Connection.Info("disconnecting..."); +#endif + if (OnDisconnecting != null) { + OnDisconnecting(this, EventArgs.Empty); + } + + IsDisconnecting = true; + + _ReadThread.Stop(); + _WriteThread.Stop(); + _TcpClient.Close(); + _IsConnected = false; + _IsRegistered = false; + + IsDisconnecting = false; + + if (OnDisconnected != null) { + OnDisconnected(this, EventArgs.Empty); + } + +#if LOG4NET + Logger.Connection.Info("disconnected"); +#endif + } + + /// + /// + /// + /// + public void Listen(bool blocking) + { + if (blocking) { + while (IsConnected) { + ReadLine(true); + } + } else { + while (ReadLine(false).Length > 0) { + // loop as long as we receive messages + } + } + } + + /// + /// + /// + public void Listen() + { + Listen(true); + } + + /// + /// + /// + /// + public void ListenOnce(bool blocking) + { + ReadLine(blocking); + } + + /// + /// + /// + public void ListenOnce() + { + ListenOnce(true); + } + + /// + /// + /// + /// + /// + public string ReadLine(bool blocking) + { + string data = ""; + if (blocking) { + // block till the queue has data, but bail out on connection error + while (IsConnected && + !IsConnectionError && + _ReadThread.Queue.Count == 0) { + Thread.Sleep(10); + } + } + + if (IsConnected && + _ReadThread.Queue.Count > 0) { + data = (string)(_ReadThread.Queue.Dequeue()); + } + + if (data != null && data.Length > 0) { +#if LOG4NET + Logger.Queue.Debug("read: \""+data+"\""); +#endif + if (OnReadLine != null) { + OnReadLine(this, new ReadLineEventArgs(data)); + } + } + + if (IsConnectionError && + !IsDisconnecting && + OnConnectionError != null) { + OnConnectionError(this, EventArgs.Empty); + } + + return data; + } + + /// + /// + /// + /// + /// + public void WriteLine(string data, Priority priority) + { + if (priority == Priority.Critical) { + if (!IsConnected) { + throw new NotConnectedException(); + } + + _WriteLine(data); + } else { + ((Queue)_SendBuffer[priority]).Enqueue(data); + } + } + + /// + /// + /// + /// + public void WriteLine(string data) + { + WriteLine(data, Priority.Medium); + } + + private bool _WriteLine(string data) + { + if (IsConnected) { + try { + _Writer.Write(data + "\r\n"); + _Writer.Flush(); + } catch (IOException) { +#if LOG4NET + Logger.Socket.Warn("sending data failed, connection lost"); +#endif + IsConnectionError = true; + return false; + } catch (ObjectDisposedException) { +#if LOG4NET + Logger.Socket.Warn("sending data failed (stream error), connection lost"); +#endif + IsConnectionError = true; + return false; + } + +#if LOG4NET + Logger.Socket.Debug("sent: \""+data+"\""); +#endif + if (OnWriteLine != null) { + OnWriteLine(this, new WriteLineEventArgs(data)); + } + return true; + } + + return false; + } + + private void _NextAddress() + { + _CurrentAddress++; + if (_CurrentAddress >= _AddressList.Length) { + _CurrentAddress = 0; + } +#if LOG4NET + Logger.Connection.Info("set server to: "+Address); +#endif + } + + private void _SimpleParser(object sender, ReadLineEventArgs args) + { + string rawline = args.Line; + string[] rawlineex = rawline.Split(new char[] {' '}); + string messagecode = ""; + + if (rawline[0] == ':') { + messagecode = rawlineex[1]; + + ReplyCode replycode = ReplyCode.Null; + try { + replycode = (ReplyCode)int.Parse(messagecode); + } catch (FormatException) { + } + + if (replycode != ReplyCode.Null) { + switch (replycode) { + case ReplyCode.Welcome: + _IsRegistered = true; +#if LOG4NET + Logger.Connection.Info("logged in"); +#endif + break; + } + } else { + switch (rawlineex[1]) { + case "PONG": + DateTime now = DateTime.Now; + _LastPongReceived = now; + _Lag = now - _LastPingSent; + +#if LOG4NET + Logger.Connection.Debug("PONG received, took: " + _Lag.TotalMilliseconds + " ms"); +#endif + break; + } + } + } else { + messagecode = rawlineex[0]; + switch (messagecode) { + case "ERROR": + // FIXME: handle server errors differently than connection errors! + //IsConnectionError = true; + break; + } + } + } + + private void _OnConnectionError(object sender, EventArgs e) + { + try { + if (AutoReconnect) { + // lets try to recover the connection + Reconnect(); + } else { + // make sure we clean up + Disconnect(); + } + } catch (ConnectionException) { + } + } + + /// + /// + /// + private class ReadThread + { +#if LOG4NET + private static readonly log4net.ILog _Logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); +#endif + private IrcConnection _Connection; + private Thread _Thread; + private Queue _Queue = Queue.Synchronized(new Queue()); + + public Queue Queue { + get { + return _Queue; + } + } + + /// + /// + /// + /// + public ReadThread(IrcConnection connection) + { + _Connection = connection; + } + + /// + /// + /// + public void Start() + { + _Thread = new Thread(new ThreadStart(_Worker)); + _Thread.Name = "ReadThread ("+_Connection.Address+":"+_Connection.Port+")"; + _Thread.IsBackground = true; + _Thread.Start(); + } + + /// + /// + /// + public void Stop() + { +#if LOG4NET + _Logger.Debug("Stop()"); +#endif + +#if LOG4NET + _Logger.Debug("Stop(): aborting thread..."); +#endif + _Thread.Abort(); + // make sure we close the stream after the thread is gone, else + // the thread will think the connection is broken! +#if LOG4NET + _Logger.Debug("Stop(): joining thread..."); +#endif + _Thread.Join(); + +#if LOG4NET + _Logger.Debug("Stop(): closing reader..."); +#endif + try { + _Connection._Reader.Close(); + } catch (ObjectDisposedException) { + } + } + + private void _Worker() + { +#if LOG4NET + Logger.Socket.Debug("ReadThread started"); +#endif + try { + string data = ""; + try { + while (_Connection.IsConnected && + ((data = _Connection._Reader.ReadLine()) != null)) { + _Queue.Enqueue(data); +#if LOG4NET + Logger.Socket.Debug("received: \""+data+"\""); +#endif + } + } catch (IOException e) { +#if LOG4NET + Logger.Socket.Warn("IOException: "+e.Message); +#endif + } finally { +#if LOG4NET + Logger.Socket.Warn("connection lost"); +#endif + // only flag this as connection error if we are not + // cleanly disconnecting + if (!_Connection.IsDisconnecting) { + _Connection.IsConnectionError = true; + } + } + } catch (ThreadAbortException) { + Thread.ResetAbort(); +#if LOG4NET + Logger.Socket.Debug("ReadThread aborted"); +#endif + } catch (Exception ex) { +#if LOG4NET + Logger.Socket.Error(ex); +#endif + } + } + } + + /// + /// + /// + private class WriteThread + { + private IrcConnection _Connection; + private Thread _Thread; + private int _HighCount; + private int _AboveMediumCount; + private int _MediumCount; + private int _BelowMediumCount; + private int _LowCount; + private int _AboveMediumSentCount; + private int _MediumSentCount; + private int _BelowMediumSentCount; + private int _AboveMediumThresholdCount = 4; + private int _MediumThresholdCount = 2; + private int _BelowMediumThresholdCount = 1; + private int _BurstCount; + + /// + /// + /// + /// + public WriteThread(IrcConnection connection) + { + _Connection = connection; + } + + /// + /// + /// + public void Start() + { + _Thread = new Thread(new ThreadStart(_Worker)); + _Thread.Name = "WriteThread ("+_Connection.Address+":"+_Connection.Port+")"; + _Thread.IsBackground = true; + _Thread.Start(); + } + + /// + /// + /// + public void Stop() + { +#if LOG4NET + Logger.Connection.Debug("Stopping WriteThread..."); +#endif + + _Thread.Abort(); + // make sure we close the stream after the thread is gone, else + // the thread will think the connection is broken! + _Thread.Join(); + + try { + _Connection._Writer.Close(); + } catch (ObjectDisposedException) { + } + } + + private void _Worker() + { +#if LOG4NET + Logger.Socket.Debug("WriteThread started"); +#endif + try { + try { + while (_Connection.IsConnected) { + _CheckBuffer(); + Thread.Sleep(_Connection._SendDelay); + } + } catch (IOException e) { +#if LOG4NET + Logger.Socket.Warn("IOException: " + e.Message); +#endif + } finally { +#if LOG4NET + Logger.Socket.Warn("connection lost"); +#endif + // only flag this as connection error if we are not + // cleanly disconnecting + if (!_Connection.IsDisconnecting) { + _Connection.IsConnectionError = true; + } + } + } catch (ThreadAbortException) { + Thread.ResetAbort(); +#if LOG4NET + Logger.Socket.Debug("WriteThread aborted"); +#endif + } catch (Exception ex) { +#if LOG4NET + Logger.Socket.Error(ex); +#endif + } + } + + #region WARNING: complex scheduler, don't even think about changing it! + // WARNING: complex scheduler, don't even think about changing it! + private void _CheckBuffer() + { + // only send data if we are succefully registered on the IRC network + if (!_Connection._IsRegistered) { + return; + } + + _HighCount = ((Queue)_Connection._SendBuffer[Priority.High]).Count; + _AboveMediumCount = ((Queue)_Connection._SendBuffer[Priority.AboveMedium]).Count; + _MediumCount = ((Queue)_Connection._SendBuffer[Priority.Medium]).Count; + _BelowMediumCount = ((Queue)_Connection._SendBuffer[Priority.BelowMedium]).Count; + _LowCount = ((Queue)_Connection._SendBuffer[Priority.Low]).Count; + + if (_CheckHighBuffer() && + _CheckAboveMediumBuffer() && + _CheckMediumBuffer() && + _CheckBelowMediumBuffer() && + _CheckLowBuffer()) { + // everything is sent, resetting all counters + _AboveMediumSentCount = 0; + _MediumSentCount = 0; + _BelowMediumSentCount = 0; + _BurstCount = 0; + } + + if (_BurstCount < 3) { + _BurstCount++; + //_CheckBuffer(); + } + } + + private bool _CheckHighBuffer() + { + if (_HighCount > 0) { + string data = (string)((Queue)_Connection._SendBuffer[Priority.High]).Dequeue(); + if (_Connection._WriteLine(data) == false) { +#if LOG4NET + Logger.Queue.Warn("Sending data was not sucessful, data is requeued!"); +#endif + ((Queue)_Connection._SendBuffer[Priority.High]).Enqueue(data); + } + + if (_HighCount > 1) { + // there is more data to send + return false; + } + } + + return true; + } + + private bool _CheckAboveMediumBuffer() + { + if ((_AboveMediumCount > 0) && + (_AboveMediumSentCount < _AboveMediumThresholdCount)) { + string data = (string)((Queue)_Connection._SendBuffer[Priority.AboveMedium]).Dequeue(); + if (_Connection._WriteLine(data) == false) { +#if LOG4NET + Logger.Queue.Warn("Sending data was not sucessful, data is requeued!"); +#endif + ((Queue)_Connection._SendBuffer[Priority.AboveMedium]).Enqueue(data); + } + _AboveMediumSentCount++; + + if (_AboveMediumSentCount < _AboveMediumThresholdCount) { + return false; + } + } + + return true; + } + + private bool _CheckMediumBuffer() + { + if ((_MediumCount > 0) && + (_MediumSentCount < _MediumThresholdCount)) { + string data = (string)((Queue)_Connection._SendBuffer[Priority.Medium]).Dequeue(); + if (_Connection._WriteLine(data) == false) { +#if LOG4NET + Logger.Queue.Warn("Sending data was not sucessful, data is requeued!"); +#endif + ((Queue)_Connection._SendBuffer[Priority.Medium]).Enqueue(data); + } + _MediumSentCount++; + + if (_MediumSentCount < _MediumThresholdCount) { + return false; + } + } + + return true; + } + + private bool _CheckBelowMediumBuffer() + { + if ((_BelowMediumCount > 0) && + (_BelowMediumSentCount < _BelowMediumThresholdCount)) { + string data = (string)((Queue)_Connection._SendBuffer[Priority.BelowMedium]).Dequeue(); + if (_Connection._WriteLine(data) == false) { +#if LOG4NET + Logger.Queue.Warn("Sending data was not sucessful, data is requeued!"); +#endif + ((Queue)_Connection._SendBuffer[Priority.BelowMedium]).Enqueue(data); + } + _BelowMediumSentCount++; + + if (_BelowMediumSentCount < _BelowMediumThresholdCount) { + return false; + } + } + + return true; + } + + private bool _CheckLowBuffer() + { + if (_LowCount > 0) { + if ((_HighCount > 0) || + (_AboveMediumCount > 0) || + (_MediumCount > 0) || + (_BelowMediumCount > 0)) { + return true; + } + + string data = (string)((Queue)_Connection._SendBuffer[Priority.Low]).Dequeue(); + if (_Connection._WriteLine(data) == false) { +#if LOG4NET + Logger.Queue.Warn("Sending data was not sucessful, data is requeued!"); +#endif + ((Queue)_Connection._SendBuffer[Priority.Low]).Enqueue(data); + } + + if (_LowCount > 1) { + return false; + } + } + + return true; + } + // END OF WARNING, below this you can read/change again ;) + #endregion + } + + /// + /// + /// + private class IdleWorkerThread + { + private IrcConnection _Connection; + private Thread _Thread; + + /// + /// + /// + /// + public IdleWorkerThread(IrcConnection connection) + { + _Connection = connection; + } + + /// + /// + /// + public void Start() + { + DateTime now = DateTime.Now; + _Connection._LastPingSent = now; + _Connection._LastPongReceived = now; + + _Thread = new Thread(new ThreadStart(_Worker)); + _Thread.Name = "IdleWorkerThread ("+_Connection.Address+":"+_Connection.Port+")"; + _Thread.IsBackground = true; + _Thread.Start(); + } + + /// + /// + /// + public void Stop() + { + _Thread.Abort(); + } + + private void _Worker() + { +#if LOG4NET + Logger.Socket.Debug("IdleWorkerThread started"); +#endif + try { + while (_Connection.IsConnected ) { + Thread.Sleep(_Connection._IdleWorkerInterval); + + // only send active pings if we are registered + if (!_Connection.IsRegistered) { + continue; + } + + DateTime now = DateTime.Now; + int last_ping_sent = (int)(now - _Connection._LastPingSent).TotalSeconds; + int last_pong_rcvd = (int)(now - _Connection._LastPongReceived).TotalSeconds; + // determins if the resoponse time is ok + if (last_ping_sent < _Connection._PingTimeout) { + if (_Connection._LastPingSent > _Connection._LastPongReceived) { + // there is a pending ping request, we have to wait + continue; + } + + // determines if it need to send another ping yet + if (last_pong_rcvd > _Connection._PingInterval) { + _Connection.WriteLine(Rfc2812.Ping(_Connection.Address), Priority.Critical); + _Connection._LastPingSent = now; + //_Connection._LastPongReceived = now; + } // else connection is fine, just continue + } else { + if (_Connection.IsDisconnecting) { + break; + } +#if LOG4NET + Logger.Socket.Warn("ping timeout, connection lost"); +#endif + // only flag this as connection error if we are not + // cleanly disconnecting + _Connection.IsConnectionError = true; + break; + } + } + } catch (ThreadAbortException) { + Thread.ResetAbort(); +#if LOG4NET + Logger.Socket.Debug("IdleWorkerThread aborted"); +#endif + } catch (Exception ex) { +#if LOG4NET + Logger.Socket.Error(ex); +#endif + } + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcProperties.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcProperties.cs new file mode 100644 index 0000000..2904602 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcProperties.cs @@ -0,0 +1,48 @@ +/* + * $Id: IrcConnection.cs 208 2006-01-28 17:11:59Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcConnection/IrcConnection.cs $ + * $Rev: 208 $ + * $Author: meebey $ + * $Date: 2006-01-28 18:11:59 +0100 (Sat, 28 Jan 2006) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System; +using System.IO; +using System.Text; +using System.Collections; +using System.Threading; +using System.Reflection; +using System.Net.Sockets; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + /* + public class IrcProperties + { + } + */ +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcTcpClient.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcTcpClient.cs new file mode 100644 index 0000000..ec2835f --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/IrcConnection/IrcTcpClient.cs @@ -0,0 +1,45 @@ +/* + * $Id: IrcTcpClient.cs 198 2005-06-08 16:50:11Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/IrcConnection/IrcTcpClient.cs $ + * $Rev: 198 $ + * $Author: meebey $ + * $Date: 2005-06-08 18:50:11 +0200 (Wed, 08 Jun 2005) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System.Net.Sockets; + +namespace Meebey.SmartIrc4net +{ + /// + /// + /// + /// + internal class IrcTcpClient: TcpClient + { + public Socket Socket { + get { + return Client; + } + } + } +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Logger.cs b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Logger.cs new file mode 100644 index 0000000..929b6c5 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Logger.cs @@ -0,0 +1,201 @@ +/* + * $Id: Logger.cs 209 2006-12-22 19:11:35Z meebey $ + * $URL: svn+ssh://svn.qnetp.net/svn/smartirc/SmartIrc4net/trunk/src/Logger.cs $ + * $Rev: 209 $ + * $Author: meebey $ + * $Date: 2006-12-22 20:11:35 +0100 (Fri, 22 Dec 2006) $ + * + * SmartIrc4net - the IRC library for .NET/C# + * + * Copyright (c) 2003-2005 Mirco Bauer + * + * Full LGPL License: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +using System.IO; +using System.Collections; + +namespace Meebey.SmartIrc4net +{ +#if LOG4NET + /// + /// + /// + public enum LogCategory + { + Main, + Connection, + Socket, + Queue, + IrcMessages, + MessageTypes, + MessageParser, + ActionHandler, + TimeHandler, + MessageHandler, + ChannelSyncing, + UserSyncing, + Modules, + Dcc + } + + /// + /// + /// + /// + internal class Logger + { + private static SortedList _LoggerList = new SortedList(); + private static bool _Init; + + private Logger() + { + } + + public static void Init() + { + if (_Init) { + return; + } + + _Init = true; + + /* + FileInfo fi = new FileInfo("SmartIrc4net_log.config"); + if (fi.Exists) { + log4net.Config.DOMConfigurator.ConfigureAndWatch(fi); + } else { + log4net.Config.BasicConfigurator.Configure(); + } + */ + + _LoggerList[LogCategory.Main] = log4net.LogManager.GetLogger("MAIN"); + _LoggerList[LogCategory.Socket] = log4net.LogManager.GetLogger("SOCKET"); + _LoggerList[LogCategory.Queue] = log4net.LogManager.GetLogger("QUEUE"); + _LoggerList[LogCategory.Connection] = log4net.LogManager.GetLogger("CONNECTION"); + _LoggerList[LogCategory.IrcMessages] = log4net.LogManager.GetLogger("IRCMESSAGE"); + _LoggerList[LogCategory.MessageParser] = log4net.LogManager.GetLogger("MESSAGEPARSER"); + _LoggerList[LogCategory.MessageTypes] = log4net.LogManager.GetLogger("MESSAGETYPES"); + _LoggerList[LogCategory.ActionHandler] = log4net.LogManager.GetLogger("ACTIONHANDLER"); + _LoggerList[LogCategory.TimeHandler] = log4net.LogManager.GetLogger("TIMEHANDLER"); + _LoggerList[LogCategory.MessageHandler] = log4net.LogManager.GetLogger("MESSAGEHANDLER"); + _LoggerList[LogCategory.ChannelSyncing] = log4net.LogManager.GetLogger("CHANNELSYNCING"); + _LoggerList[LogCategory.UserSyncing] = log4net.LogManager.GetLogger("USERSYNCING"); + _LoggerList[LogCategory.Modules] = log4net.LogManager.GetLogger("MODULES"); + _LoggerList[LogCategory.Dcc] = log4net.LogManager.GetLogger("DCC"); + } + + public static log4net.ILog Main + { + get { + return (log4net.ILog)_LoggerList[LogCategory.Main]; + } + } + + public static log4net.ILog Socket + { + get { + return (log4net.ILog)_LoggerList[LogCategory.Socket]; + } + } + + public static log4net.ILog Queue + { + get { + return (log4net.ILog)_LoggerList[LogCategory.Queue]; + } + } + + public static log4net.ILog Connection + { + get { + return (log4net.ILog)_LoggerList[LogCategory.Connection]; + } + } + + public static log4net.ILog IrcMessages + { + get { + return (log4net.ILog)_LoggerList[LogCategory.IrcMessages]; + } + } + + public static log4net.ILog MessageParser + { + get { + return (log4net.ILog)_LoggerList[LogCategory.MessageParser]; + } + } + + public static log4net.ILog MessageTypes + { + get { + return (log4net.ILog)_LoggerList[LogCategory.MessageTypes]; + } + } + + public static log4net.ILog ActionHandler + { + get { + return (log4net.ILog)_LoggerList[LogCategory.ActionHandler]; + } + } + + public static log4net.ILog TimeHandler + { + get { + return (log4net.ILog)_LoggerList[LogCategory.TimeHandler]; + } + } + + public static log4net.ILog MessageHandler + { + get { + return (log4net.ILog)_LoggerList[LogCategory.MessageHandler]; + } + } + + public static log4net.ILog ChannelSyncing + { + get { + return (log4net.ILog)_LoggerList[LogCategory.ChannelSyncing]; + } + } + + public static log4net.ILog UserSyncing + { + get { + return (log4net.ILog)_LoggerList[LogCategory.UserSyncing]; + } + } + + public static log4net.ILog Modules + { + get { + return (log4net.ILog)_LoggerList[LogCategory.Modules]; + } + } + + public static log4net.ILog Dcc + { + get { + return (log4net.ILog)_LoggerList[LogCategory.Dcc]; + } + } + } +#endif +} diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Makefile.am b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Makefile.am new file mode 100644 index 0000000..28d5cba --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Makefile.am @@ -0,0 +1,41 @@ +TARGET_DIR = $(top_srcdir)/bin +KEYFILE = $(top_srcdir)/$(PACKAGE_NAME).snk +ASSEMBLY = $(ASSEMBLY_NAME).dll +ASSEMBLY_TARGET = $(TARGET_DIR)/$(ASSEMBLY) +ASSEMBLY_XML = $(ASSEMBLY_NAME).xml +ASSEMBLY_XML_TARGET = $(TARGET_DIR)/$(ASSEMBLY_XML) +ASSEMBLY_PC = $(top_srcdir)/$(PACKAGE_NAME).pc +NDOC = ndoc-console +NDOC_TARGET_DIR = docs/html +SOURCE_FILES = *.cs */*.cs +GACUTIL_INSTALL = $(GACUTIL) -i $(ASSEMBLY_TARGET) -f $(GACUTIL_FLAGS) +GACUTIL_UNINSTALL = $(GACUTIL) -u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) + +# automake magic variables +EXTRA_DIST = $(SOURCE_FILES) +CLEANFILES = $(ASSEMBLY_TARGET) + +pkglib_DATA = $(ASSEMBLY_TARGET) + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = $(ASSEMBLY_PC) + +all: $(ASSEMBLY_TARGET) + +$(ASSEMBLY_TARGET): $(SOURCE_FILES) + $(INSTALL) -d $(TARGET_DIR) + $(CSC) $(CSC_FLAGS) -keyfile:$(KEYFILE) -doc:$(ASSEMBLY_XML_TARGET) -target:library -out:$@ $^ + +docs: $(ASSEMBLY_TARGET) + $(NDOC) $(ASSEMBLY) \ + -documenter=MSDN -OutputTarget=Web -OutputDirectory=$(NDOC_TARGET_DIR) \ + -Title="SmartIrc4net API documentation" -SdkLinksOnWeb=true \ + -AssemblyVersionInfo=AssemblyVersion + +install-data-local: + echo "$(GACUTIL_INSTALL)"; \ + $(GACUTIL_INSTALL) || exit 1; + +uninstall-local: + echo "$(GACUTIL_UNINSTALL)"; \ + $(GACUTIL_UNINSTALL) || exit 1; diff --git a/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Makefile.in b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Makefile.in new file mode 100644 index 0000000..d0170f0 --- /dev/null +++ b/SmartIrc4net/SmartIrc4net-0.4.5.1/src/Makefile.in @@ -0,0 +1,387 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = src +DIST_COMMON = $(srcdir)/AssemblyInfo.cs.in $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/expansions.m4 \ + $(top_srcdir)/mono.m4 $(top_srcdir)/programs.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = AssemblyInfo.cs +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)" +pkgconfigDATA_INSTALL = $(INSTALL_DATA) +pkglibDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgconfig_DATA) $(pkglib_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +ASSEMBLY_DESCRIPTION = @ASSEMBLY_DESCRIPTION@ +ASSEMBLY_NAME = @ASSEMBLY_NAME@ +ASSEMBLY_TITLE = @ASSEMBLY_TITLE@ +ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CLR = @CLR@ +CSC = @CSC@ +CSC_FLAGS = @CSC_FLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +GACUTIL = @GACUTIL@ +GACUTIL_FLAGS = @GACUTIL_FLAGS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MCS = @MCS@ +MKDIR_P = @MKDIR_P@ +MONO = @MONO@ +MONO_MODULE_CFLAGS = @MONO_MODULE_CFLAGS@ +MONO_MODULE_LIBS = @MONO_MODULE_LIBS@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +expanded_libdir = @expanded_libdir@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +TARGET_DIR = $(top_srcdir)/bin +KEYFILE = $(top_srcdir)/$(PACKAGE_NAME).snk +ASSEMBLY = $(ASSEMBLY_NAME).dll +ASSEMBLY_TARGET = $(TARGET_DIR)/$(ASSEMBLY) +ASSEMBLY_XML = $(ASSEMBLY_NAME).xml +ASSEMBLY_XML_TARGET = $(TARGET_DIR)/$(ASSEMBLY_XML) +ASSEMBLY_PC = $(top_srcdir)/$(PACKAGE_NAME).pc +NDOC = ndoc-console +NDOC_TARGET_DIR = docs/html +SOURCE_FILES = *.cs */*.cs +GACUTIL_INSTALL = $(GACUTIL) -i $(ASSEMBLY_TARGET) -f $(GACUTIL_FLAGS) +GACUTIL_UNINSTALL = $(GACUTIL) -u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) + +# automake magic variables +EXTRA_DIST = $(SOURCE_FILES) +CLEANFILES = $(ASSEMBLY_TARGET) +pkglib_DATA = $(ASSEMBLY_TARGET) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = $(ASSEMBLY_PC) +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign src/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +AssemblyInfo.cs: $(top_builddir)/config.status $(srcdir)/AssemblyInfo.cs.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" + @list='$(pkgconfig_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ + $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \ + done +install-pkglibDATA: $(pkglib_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" + @list='$(pkglib_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(pkglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +uninstall-pkglibDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-data-local install-pkgconfigDATA + +install-dvi: install-dvi-am + +install-exec-am: install-pkglibDATA + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-local uninstall-pkgconfigDATA \ + uninstall-pkglibDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-data-local install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-pkgconfigDATA install-pkglibDATA install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ + uninstall-am uninstall-local uninstall-pkgconfigDATA \ + uninstall-pkglibDATA + + +all: $(ASSEMBLY_TARGET) + +$(ASSEMBLY_TARGET): $(SOURCE_FILES) + $(INSTALL) -d $(TARGET_DIR) + $(CSC) $(CSC_FLAGS) -keyfile:$(KEYFILE) -doc:$(ASSEMBLY_XML_TARGET) -target:library -out:$@ $^ + +docs: $(ASSEMBLY_TARGET) + $(NDOC) $(ASSEMBLY) \ + -documenter=MSDN -OutputTarget=Web -OutputDirectory=$(NDOC_TARGET_DIR) \ + -Title="SmartIrc4net API documentation" -SdkLinksOnWeb=true \ + -AssemblyVersionInfo=AssemblyVersion + +install-data-local: + echo "$(GACUTIL_INSTALL)"; \ + $(GACUTIL_INSTALL) || exit 1; + +uninstall-local: + echo "$(GACUTIL_UNINSTALL)"; \ + $(GACUTIL_UNINSTALL) || exit 1; +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: