diff options
Diffstat (limited to 'src/common')
46 files changed, 793 insertions, 498 deletions
diff --git a/src/common/cfgfiles.h b/src/common/cfgfiles.h index e55befe5..3feb6a31 100644 --- a/src/common/cfgfiles.h +++ b/src/common/cfgfiles.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* cfgfiles.h */ #ifndef HEXCHAT_CFGFILES_H diff --git a/src/common/chanopt.c b/src/common/chanopt.c index c0382000..561f2f9c 100644 --- a/src/common/chanopt.c +++ b/src/common/chanopt.c @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* per-channel/dialog settings :: /CHANOPT */ #include <stdio.h> diff --git a/src/common/chanopt.h b/src/common/chanopt.h index 90ca86c3..c0990385 100644 --- a/src/common/chanopt.h +++ b/src/common/chanopt.h @@ -1,6 +1,30 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef HEXCHAT_CHANOPT_H +#define HEXCHAT_CHANOPT_H + int chanopt_command (session *sess, char *tbuf, char *word[], char *word_eol[]); gboolean chanopt_is_set (unsigned int global, guint8 per_chan_setting); gboolean chanopt_is_set_a (unsigned int global, guint8 per_chan_setting); void chanopt_save_all (void); void chanopt_save (session *sess); void chanopt_load (session *sess); + +#endif diff --git a/src/common/common-xp.vcxproj b/src/common/common-xp.vcxproj deleted file mode 100644 index 2b5979b6..00000000 --- a/src/common/common-xp.vcxproj +++ /dev/null @@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\..\config-win32.h" /> - <ClInclude Include="cfgfiles.h" /> - <ClInclude Include="chanopt.h" /> - <ClInclude Include="ctcp.h" /> - <ClInclude Include="dcc.h" /> - <ClInclude Include="fe.h" /> - <ClInclude Include="history.h" /> - <ClInclude Include="identd.h" /> - <ClInclude Include="ignore.h" /> - <ClInclude Include="inbound.h" /> - <ClInclude Include="inet.h" /> - <ClInclude Include="modes.h" /> - <ClInclude Include="msproxy.h" /> - <ClInclude Include="network.h" /> - <ClInclude Include="notify.h" /> - <ClInclude Include="outbound.h" /> - <ClInclude Include="plugin-timer.h" /> - <ClInclude Include="plugin.h" /> - <ClInclude Include="proto-irc.h" /> - <ClInclude Include="server.h" /> - <ClInclude Include="servlist.h" /> - <ClInclude Include="ssl.h" /> - <ClInclude Include="strlutil.h" /> - <ClInclude Include="text.h" /> - <ClInclude Include="textenums.h" /> - <ClInclude Include="textevents.h" /> - <ClInclude Include="thread.h" /> - <ClInclude Include="tree.h" /> - <ClInclude Include="typedef.h" /> - <ClInclude Include="url.h" /> - <ClInclude Include="userlist.h" /> - <ClInclude Include="util.h" /> - <ClInclude Include="hexchat-plugin.h" /> - <ClInclude Include="hexchat.h" /> - <ClInclude Include="hexchatc.h" /> - </ItemGroup> - <ItemGroup> - <ClCompile Include="cfgfiles.c" /> - <ClCompile Include="chanopt.c" /> - <ClCompile Include="ctcp.c" /> - <ClCompile Include="dcc.c" /> - <ClCompile Include="history.c" /> - <ClCompile Include="identd.c" /> - <ClCompile Include="ignore.c" /> - <ClCompile Include="inbound.c" /> - <ClCompile Include="modes.c" /> - <ClCompile Include="msproxy.c" /> - <ClCompile Include="network.c" /> - <ClCompile Include="notify.c" /> - <ClCompile Include="outbound.c" /> - <ClCompile Include="plugin-timer.c" /> - <ClCompile Include="plugin.c" /> - <ClCompile Include="proto-irc.c" /> - <ClCompile Include="server.c" /> - <ClCompile Include="servlist.c" /> - <ClCompile Include="ssl.c" /> - <ClCompile Include="strlutil.c" /> - <ClCompile Include="text.c" /> - <ClCompile Include="thread.c" /> - <ClCompile Include="tree.c" /> - <ClCompile Include="url.c" /> - <ClCompile Include="userlist.c" /> - <ClCompile Include="util.c" /> - <ClCompile Include="hexchat.c" /> - </ItemGroup> - <PropertyGroup Label="Globals"> - <ProjectGuid>{87554B59-006C-4D94-9714-897B27067BA3}</ProjectGuid> - <Keyword>Win32Proj</Keyword> - <RootNamespace>common</RootNamespace> - <ProjectName>common</ProjectName> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <ConfigurationType>StaticLibrary</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>MultiByte</CharacterSet> - <PlatformToolset>WDK7</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>StaticLibrary</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>MultiByte</CharacterSet> - <PlatformToolset>WDK7</PlatformToolset> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - <Import Project="..\..\win32\hexchat-xp.props" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - <Import Project="..\..\win32\hexchat-xp.props" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <OutDir>$(HexChatBin)</OutDir> - <IntDir>$(HexChatObj)$(ProjectName)\</IntDir> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <OutDir>$(HexChatBin)</OutDir> - <IntDir>$(HexChatObj)$(ProjectName)\</IntDir> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <PrecompiledHeader> - </PrecompiledHeader> - <Optimization>MaxSpeed</Optimization> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <PreprocessorDefinitions>WIN32;NDEBUG;_LIB;$(OwnFlags);%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <MultiProcessorCompilation>true</MultiProcessorCompilation> - <DisableSpecificWarnings></DisableSpecificWarnings> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <PrecompiledHeader> - </PrecompiledHeader> - <Optimization>MaxSpeed</Optimization> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <PreprocessorDefinitions>WIN32;_WIN64;_AMD64_;NDEBUG;_LIB;$(OwnFlags);%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <MultiProcessorCompilation>true</MultiProcessorCompilation> - <DisableSpecificWarnings>4244;4267</DisableSpecificWarnings> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - </Link> - </ItemDefinitionGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project> \ No newline at end of file diff --git a/src/common/common-xp.vcxproj.filters b/src/common/common-xp.vcxproj.filters deleted file mode 100644 index ceeea660..00000000 --- a/src/common/common-xp.vcxproj.filters +++ /dev/null @@ -1,203 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> - <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> - <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> - </Filter> - </ItemGroup> - <ItemGroup> - <ClInclude Include="cfgfiles.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="chanopt.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="ctcp.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="dcc.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="fe.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="history.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="identd.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="ignore.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="inbound.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="inet.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="modes.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="msproxy.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="network.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="notify.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="outbound.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="plugin.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="plugin-timer.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="proto-irc.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="server.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="servlist.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="ssl.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="text.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="textenums.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="textevents.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="thread.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="tree.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="url.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="userlist.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="util.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="hexchat.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="hexchatc.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="hexchat-plugin.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="..\..\config-win32.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="strlutil.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="typedef.h"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> - <ItemGroup> - <ClCompile Include="cfgfiles.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="chanopt.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="ctcp.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="dcc.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="history.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="identd.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="ignore.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="inbound.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="modes.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="msproxy.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="network.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="notify.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="outbound.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="plugin.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="plugin-timer.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="proto-irc.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="server.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="servlist.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="ssl.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="text.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="thread.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="tree.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="url.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="userlist.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="util.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="hexchat.c"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="strlutil.c"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/src/common/ctcp.h b/src/common/ctcp.h index 296e6b1b..54e33f4c 100644 --- a/src/common/ctcp.h +++ b/src/common/ctcp.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_CTCP_H #define HEXCHAT_CTCP_H diff --git a/src/common/dbus/example-gdbus.py b/src/common/dbus/example-gdbus.py index 3c25771b..4f141034 100644 --- a/src/common/dbus/example-gdbus.py +++ b/src/common/dbus/example-gdbus.py @@ -1,5 +1,24 @@ #!/usr/bin/python +# HexChat +# Copyright (C) 1998-2010 Peter Zelezny. +# Copyright (C) 2009-2013 Berke Viktor. +# +# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA +# + from gi.repository import Gio bus = Gio.bus_get_sync(Gio.BusType.SESSION, None) diff --git a/src/common/dbus/example.py b/src/common/dbus/example.py index f326e98a..4b94cd68 100644 --- a/src/common/dbus/example.py +++ b/src/common/dbus/example.py @@ -1,5 +1,24 @@ #! /usr/bin/python +# HexChat +# Copyright (C) 1998-2010 Peter Zelezny. +# Copyright (C) 2009-2013 Berke Viktor. +# +# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA +# + import dbus bus = dbus.SessionBus() diff --git a/src/common/dcc.h b/src/common/dcc.h index 6dcd53d5..32d0ed5f 100644 --- a/src/common/dcc.h +++ b/src/common/dcc.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* dcc.h */ #include <time.h> /* for time_t */ diff --git a/src/common/fe.h b/src/common/fe.h index 337c4b47..22db38df 100644 --- a/src/common/fe.h +++ b/src/common/fe.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #include "userlist.h" #include "dcc.h" diff --git a/src/common/hexchat-plugin.h b/src/common/hexchat-plugin.h index f6e9a659..36dc544f 100644 --- a/src/common/hexchat-plugin.h +++ b/src/common/hexchat-plugin.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* You can distribute this header with your plugins for easy compilation */ #ifndef HEXCHAT_PLUGIN_H #define HEXCHAT_PLUGIN_H diff --git a/src/common/hexchat.h b/src/common/hexchat.h index f734472d..32ffd4d2 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifdef WIN32 #include "../../config-win32.h" #else diff --git a/src/common/hexchatc.h b/src/common/hexchatc.h index 9650dc10..774f4dd9 100644 --- a/src/common/hexchatc.h +++ b/src/common/hexchatc.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_C_H #define HEXCHAT_C_H diff --git a/src/common/history.h b/src/common/history.h index c5696d70..dc79192c 100644 --- a/src/common/history.h +++ b/src/common/history.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_HISTORY_H #define HEXCHAT_HISTORY_H diff --git a/src/common/identd.c b/src/common/identd.c index 5cfc536f..6dde6a5f 100644 --- a/src/common/identd.c +++ b/src/common/identd.c @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* simple identd server for HexChat under Win32 */ #include "inet.h" diff --git a/src/common/identd.h b/src/common/identd.h index 636f9641..3b29135f 100644 --- a/src/common/identd.h +++ b/src/common/identd.h @@ -1 +1,25 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef HEXCHAT_IDENTD_H +#define HEXCHAT_IDENTD_H + void identd_start (char *username); + +#endif diff --git a/src/common/ignore.h b/src/common/ignore.h index e4b14a3f..3263a940 100644 --- a/src/common/ignore.h +++ b/src/common/ignore.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_IGNORE_H #define HEXCHAT_IGNORE_H diff --git a/src/common/inbound.h b/src/common/inbound.h index e1e4e9bb..a98beaa1 100644 --- a/src/common/inbound.h +++ b/src/common/inbound.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_INBOUND_H #define HEXCHAT_INBOUND_H diff --git a/src/common/inet.h b/src/common/inet.h index 75e2fb01..36d5bb60 100644 --- a/src/common/inet.h +++ b/src/common/inet.h @@ -1,5 +1,27 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* include stuff for internet */ +#ifndef HEXCHAT_INET_H +#define HEXCHAT_INET_H + #ifndef WIN32 #ifdef WANTSOCKET @@ -41,3 +63,5 @@ #define sock_error WSAGetLastError #endif + +#endif diff --git a/src/common/make-te-xp.vcxproj b/src/common/make-te-xp.vcxproj deleted file mode 100644 index bd4cb2da..00000000 --- a/src/common/make-te-xp.vcxproj +++ /dev/null @@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <ProjectGuid>{A7D7CE59-2A31-48AE-BED2-A9828E241832}</ProjectGuid> - <Keyword>Win32Proj</Keyword> - <RootNamespace>makete</RootNamespace> - <ProjectName>make-te</ProjectName> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <ConfigurationType>Application</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>MultiByte</CharacterSet> - <PlatformToolset>WDK7</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>Application</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>MultiByte</CharacterSet> - <PlatformToolset>WDK7</PlatformToolset> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - <Import Project="..\..\win32\hexchat-xp.props" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - <Import Project="..\..\win32\hexchat-xp.props" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <LinkIncremental>false</LinkIncremental> - <OutDir>$(HexChatBin)</OutDir> - <IntDir>$(HexChatObj)$(ProjectName)\</IntDir> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <LinkIncremental>false</LinkIncremental> - <OutDir>$(HexChatBin)</OutDir> - <IntDir>$(HexChatObj)$(ProjectName)\</IntDir> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <PrecompiledHeader> - </PrecompiledHeader> - <Optimization>MaxSpeed</Optimization> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <MultiProcessorCompilation>true</MultiProcessorCompilation> - </ClCompile> - <Link> - <SubSystem>Console</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - </Link> - <PostBuildEvent> - <Command>"$(HexChatBin)make-te.exe" < "$(ProjectDir)textevents.in" > "$(ProjectDir)textevents.h" 2> "$(ProjectDir)textenums.h"</Command> - </PostBuildEvent> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <PrecompiledHeader> - </PrecompiledHeader> - <Optimization>MaxSpeed</Optimization> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <MultiProcessorCompilation>true</MultiProcessorCompilation> - </ClCompile> - <Link> - <SubSystem>Console</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - </Link> - <PostBuildEvent> - <Command>"$(HexChatBin)make-te.exe" < "$(ProjectDir)textevents.in" > "$(ProjectDir)textevents.h" 2> "$(ProjectDir)textenums.h"</Command> - </PostBuildEvent> - </ItemDefinitionGroup> - <ItemGroup> - <ClCompile Include="make-te.c" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project> \ No newline at end of file diff --git a/src/common/make-te-xp.vcxproj.filters b/src/common/make-te-xp.vcxproj.filters deleted file mode 100644 index ac9f0939..00000000 --- a/src/common/make-te-xp.vcxproj.filters +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> - <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> - <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="make-te.c"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/src/common/make-te.c b/src/common/make-te.c index 117d41ab..309eec2f 100644 --- a/src/common/make-te.c +++ b/src/common/make-te.c @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* Process textevents.in with make-te < textevents.in > textevents.h 2> textenums.h * * textevents.in notes: diff --git a/src/common/modes.h b/src/common/modes.h index 30ccbd72..e55ec911 100644 --- a/src/common/modes.h +++ b/src/common/modes.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_MODES_H #define HEXCHAT_MODES_H diff --git a/src/common/msproxy.h b/src/common/msproxy.h index 9fb312ad..4371d704 100644 --- a/src/common/msproxy.h +++ b/src/common/msproxy.h @@ -21,6 +21,9 @@ * Inferno Nettverk A/S, Norway. All rights reserved. */ +#ifndef HEXCHAT_MSPROXY_H +#define HEXCHAT_MSPROXY_H + #include "network.h" #define MSPROXY_EXECUTABLE "hexchat.exe" /* This probably can be used for access control on the server side */ @@ -255,3 +258,5 @@ struct msproxy_response_t { int traverse_msproxy (int sok, char *serverAddr, int port, struct msproxy_state_t *state, netstore *ns_proxy, int csok4, int csok6, int *csok, char bound); void msproxy_keepalive (void); + +#endif diff --git a/src/common/network.h b/src/common/network.h index d7957568..6a4dce39 100644 --- a/src/common/network.h +++ b/src/common/network.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_NETWORK_H #define HEXCHAT_NETWORK_H diff --git a/src/common/notify.h b/src/common/notify.h index eefb30e8..8e513d5f 100644 --- a/src/common/notify.h +++ b/src/common/notify.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_NOTIFY_H #define HEXCHAT_NOTIFY_H diff --git a/src/common/outbound.c b/src/common/outbound.c index a0daaa9c..c3325f7c 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -4460,16 +4460,29 @@ handle_user_input (session *sess, char *text, int history, int nocommand) return 1; } +#if 0 /* Who would remember all this? */ if (prefs.hex_input_command_char[0] == '/') { int i; const char *unix_dirs [] = { - "/bin/", "/boot/", "/dev/", - "/etc/", "/home/", "/lib/", - "/lost+found/", "/mnt/", "/opt/", - "/proc/", "/root/", "/sbin/", - "/tmp/", "/usr/", "/var/", - "/gnome/", NULL}; + "/bin/", + "/boot/", + "/dev/", + "/etc/", + "/home/", + "/lib/", + "/lost+found/", + "/mnt/", + "/opt/", + "/proc/", + "/root/", + "/sbin/", + "/tmp/", + "/usr/", + "/var/", + "/gnome/", + NULL + }; for (i = 0; unix_dirs[i] != NULL; i++) if (strncmp (text, unix_dirs[i], strlen (unix_dirs[i]))==0) { @@ -4477,6 +4490,7 @@ handle_user_input (session *sess, char *text, int history, int nocommand) return 1; } } +#endif return handle_command (sess, text + 1, TRUE); } diff --git a/src/common/outbound.h b/src/common/outbound.h index def3868d..6f45b121 100644 --- a/src/common/outbound.h +++ b/src/common/outbound.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_OUTBOUND_H #define HEXCHAT_OUTBOUND_H diff --git a/src/common/plugin-timer.c b/src/common/plugin-timer.c index 7c87cc41..7f5f5cb4 100644 --- a/src/common/plugin-timer.c +++ b/src/common/plugin-timer.c @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #include <stdlib.h> #include <string.h> #include <glib.h> diff --git a/src/common/plugin-timer.h b/src/common/plugin-timer.h index 6be73760..711e2bd4 100644 --- a/src/common/plugin-timer.h +++ b/src/common/plugin-timer.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_PLUGIN_TIMER_H #define HEXCHAT_PLUGIN_TIMER_H diff --git a/src/common/plugin.h b/src/common/plugin.h index 0aa43f0b..dd878895 100644 --- a/src/common/plugin.h +++ b/src/common/plugin.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_COMMONPLUGIN_H #define HEXCHAT_COMMONPLUGIN_H diff --git a/src/common/proto-irc.h b/src/common/proto-irc.h index 1070fd71..2de9815c 100644 --- a/src/common/proto-irc.h +++ b/src/common/proto-irc.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_PROTO_H #define HEXCHAT_PROTO_H diff --git a/src/common/server.h b/src/common/server.h index e5c70636..08aeca56 100644 --- a/src/common/server.h +++ b/src/common/server.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_SERVER_H #define HEXCHAT_SERVER_H diff --git a/src/common/servlist.h b/src/common/servlist.h index b50ca0ea..5ed3c4d6 100644 --- a/src/common/servlist.h +++ b/src/common/servlist.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_SERVLIST_H #define HEXCHAT_SERVLIST_H diff --git a/src/common/ssl.h b/src/common/ssl.h index 26eb0f88..ad34944c 100644 --- a/src/common/ssl.h +++ b/src/common/ssl.h @@ -1,6 +1,24 @@ -/* - ... -*/ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef HEXCHAT_SSL_H +#define HEXCHAT_SSL_H struct cert_info { char subject[256]; @@ -63,3 +81,5 @@ int _SSL_recv (SSL * ssl, char *buf, int len); #define _SSL_get_ctx_x509_base64(a) _SSL_get_ctx_obj_base64(a, 2) /*int _SSL_verify_x509(X509 *x509);*/ + +#endif diff --git a/src/common/strlutil.h b/src/common/strlutil.h index 968aab53..2d66bc6d 100644 --- a/src/common/strlutil.h +++ b/src/common/strlutil.h @@ -1,2 +1,23 @@ +/* + * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef HEXCHAT_STRLUTIL_H +#define HEXCHAT_STRLUTIL_H + size_t strlcat(char *dst, const char *src, size_t siz); size_t strlcpy(char *dst, const char *src, size_t siz); + +#endif diff --git a/src/common/text.h b/src/common/text.h index 103e294d..52cc8ea9 100644 --- a/src/common/text.h +++ b/src/common/text.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #include "textenums.h" #ifndef HEXCHAT_TEXT_H diff --git a/src/common/thread.c b/src/common/thread.c index ba808737..40a8778f 100644 --- a/src/common/thread.c +++ b/src/common/thread.c @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #if 0 /* native file dialogs */ #include <fcntl.h> #include "thread.h" diff --git a/src/common/thread.h b/src/common/thread.h index 97a4ed30..2c736ca2 100644 --- a/src/common/thread.h +++ b/src/common/thread.h @@ -1,3 +1,25 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef HEXCHAT_THREAD_H +#define HEXCHAT_THREAD_H + #if 0 /* native file dialogs */ #include <windows.h> @@ -10,3 +32,5 @@ typedef struct thread *thread_new (void); int thread_start (thread *th, void *(*start_routine)(void *), void *arg); #endif + +#endif diff --git a/src/common/tree.c b/src/common/tree.c index 715b0e56..587d15f0 100644 --- a/src/common/tree.c +++ b/src/common/tree.c @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /* This is used for quick userlist insertion and lookup. It's not really a tree, but it could be :) diff --git a/src/common/tree.h b/src/common/tree.h index ced8e425..848f5abf 100644 --- a/src/common/tree.h +++ b/src/common/tree.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_TREE_H #define HEXCHAT_TREE_H diff --git a/src/common/typedef.h b/src/common/typedef.h index daeffcae..2034f923 100644 --- a/src/common/typedef.h +++ b/src/common/typedef.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_TYPEDEF_H #define HEXCHAT_TYPEDEF_H diff --git a/src/common/url.c b/src/common/url.c index 717e1906..9b4e30ad 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -289,7 +289,7 @@ url_check_line (char *buf, int len) g_match_info_fetch_pos(gmi, 0, &start, &end); while (end > start && (po[end - 1] == '\r' || po[end - 1] == '\n')) - po[--end] = 0; + end--; if (g_strstr_len (po + start, end - start, "://")) url_add(po + start, end - start); g_match_info_next(gmi, NULL); diff --git a/src/common/url.h b/src/common/url.h index b8e5c848..96d9f946 100644 --- a/src/common/url.h +++ b/src/common/url.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #ifndef HEXCHAT_URL_H #define HEXCHAT_URL_H diff --git a/src/common/userlist.h b/src/common/userlist.h index d0d79da8..c1070670 100644 --- a/src/common/userlist.h +++ b/src/common/userlist.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + #include <time.h> #ifndef HEXCHAT_USERLIST_H diff --git a/src/common/util.h b/src/common/util.h index 601d9e50..81e227fb 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -1,3 +1,22 @@ +/* HexChat + * Copyright (C) 1998-2010 Peter Zelezny. + * Copyright (C) 2009-2013 Berke Viktor. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + /************************************************************************ * This technique was borrowed in part from the source code to * ircd-hybrid-5.3 to implement case-insensitive string matches which |