Skip to content

Conversation

@Nomarian
Copy link
Contributor

@Nomarian Nomarian commented Nov 2, 2025

Linter: functions explicitly go to _G or are local

Moved emoji table of the end and its divided by line (diffs were ridiculously big)
str2emoji(): pattern uses %w instead of manual set, gsub points to table instead of function (faster)
use string.find in conditionals not string.match
Use a single function alias for functions that all do the same thing
aesthetic changes (for line limit)

Script info

  • Script name:  emoji.lua
  • Version:  6
  • Requirements:  Same
  • Min WeeChat version:  idk
  • Script tags: idk

Description

Checklist (script update)

  • Author has been contacted
  • Single commit, single file added
  • Commit message format: script_name.py X.Y: …
  • Script version and Changelog have been updated
  • Score 100 / 100 displayed by weechat-script-lint

Author is xt which is not in the channel, and I doubt the email works (website doesn't) I think @torhve is the author?

	Shut up linter (explicitly use _G or local)
	Moved emoji table to the end and its divided by line
	str2emoji(): pattern uses %w instead of manual set
	str2emoji(): gsub points to table instead of function (faster)
	use string.find in conditionals not string.match
	Use function alias for functions that all do the same thing
	aesthetic changes (for line limit)
@Nomarian Nomarian closed this Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant